-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible_runner.interface.run not respecting the limit
option
#1325
Comments
Based on that output, you have |
Is it possible ansible-runner is not parsing the inventory correctly then? Because my inventory does indeed have that setting, but not on the grouping of host that im selecting. Example:
Im omitting some of the hosts, but you can see the 2 sections are distinct. This works just fine with Also my playbook says to use the first section specifically:
Or am I misunderstanding how the inventory file structure works? Thanks for the swift reply! |
It's really hard to say without an actual reproducer than we can run, or look at in it's completeness. |
Im reading through this section of the documentation: If i'm reading this correctly, is it saying that the variables from my group Is it possible thats whats going on? Or is this only valid if both groups contain the same variable? |
Hello!
I am attempting to deploy playbooks using ansible-runner.
I am passing these options into the interface.run() module.
{'private_data_dir': '/tmp', 'playbook': '/opt/rde-ansible/site.yaml', 'inventory': '/opt/rde-ansible/inventories/sandbox/hosts', 'extravars': {}, 'verbosity': 4, 'limit': 'daltschuler-rde'}
Everything seems to execute fine, the output says its targeting the correct ip of the host im trying to configure, but then it starts configuring the underlying host that im running ansible-runner on. Not deploying to the remote host im specifying in my inventory.
Here is an example of the output:
That 10.216.136.166 is the correct ip for the remote host.
But then it starts modifying the hostname of my deployment server
daltschuler_ansible_deploy
, not the limited hostdaltschuler-rde
.All of these same options work just fine when im targeting the host using
ansible-playbook
like so:ansible-playbook -i inventories/sandbox/hosts site.yaml -l daltschuler-rde
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: