-
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
Command-line argument --inventory does not work #1295
Comments
I believe our handling of What version of |
The version is 2.3.2 |
Thanks. I've dug into this more and it appears that the I'll work on getting a fix out for this, as well as improving the documentation around it. |
@LDTips I can only reproduce the behavior you see (contents of |
I think this occurred even when I was specifying localhost paths, but can't remember it for now. In any case, this behaviour seems weird. You can close this issue for now, as for the time being I am unable to check it due to lack of access to the device on which this bug occurred. When I have time, I will check it and reopen the issue if even after following your guidelines the issue will still occur. |
Thanks for the response. Going to keep this open as I feel there are improvements to be made wrt the CLI option, at least. |
When using ansible-runner I wanted to specify alternate inventory directory by using the --inventory commandline argument
However, it does not work as expected. Instead it changes the hosts file in <private_data_dir>/inventory to be equal to the provided
The command I run:
ansible-runner run -p install_sim.yml --inventory /runner/inventory2/ --process-isolation --container-image localhost/ran-deployment-stable .
Results not in using the inventory found in this location, but rather replaces the hosts file contents inside the default folder (/runner/inventory) with the path supplied to the --inventory argument. My hosts file just has the line
/runner/inventory2/
If I rearrange the folder structure and use the ansible-playbook install_sim.yml --inventory inventory2, it works as expected
The text was updated successfully, but these errors were encountered: