-
Notifications
You must be signed in to change notification settings - Fork 357
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
Cannot specify inventory when using ansible-runner with podman container (process-isolation) and --limit #1114
Comments
@alice-rc Thanks for reporting this issue. We will try to reproduce this on our end. |
I experience the same issue. ansible-runner seems to ignore any value given for inventory on the cli using the settings (env/settings) below. Whatever value is given, it sticks to '/runner/inventory/hosts'.
The version inside the container:
Command line from debug:
|
This might be the reason -
|
Any update on when this might get worked on? |
I also encountered same issue, any update on this? |
Specifying the inventory when combining the options of --process-isolation and --limit will ALWAYS use the inventory file <private_data_dir>/inventory/hosts.
ansible-runner run --playbook test.yml --limit host1 [--inventory <FQPATH>] .
works no matter where the inventory file is specified (in ansible.cfg or using --inventory on the CLI)
ansible-runner run --playbook test.yml --process-isolation --limit host1 [--inventory <FQPATH> | --inventory <RELPATH> ] .
fails no matter where the inventory file is specified (in ansible.cfg or using --inventory on the CLI)
It always shows:
inventory: ('/runner/inventory/hosts',)
ERROR! Specified hosts and/or --limit does not match any hosts
While there might be a way to work around that with an INI version of a static inventory file, if you instead put a dynamic inventory config at <private_data_dir>/inventory/hosts.yml it will not work.
The text was updated successfully, but these errors were encountered: