-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to use a custom inventory file with ansible-bender? #277
Comments
ansible-bender builds its own inventory, and ignores any existing inventory files. This causes other issues as well, like delegation not working #266. To my knowledge, there isn't any way to make it work at the moment. Please correct me if I'm wrong @TomasTomecek |
@themkat you're right ansible-bender in its current architecture cannot work with remote machines - it uses inventory to "connect" to locally running containers. If you wish to access a remote host, you need to write the inventory and a playbook and invoke ansible-bender inside that playbook, as any other commands you'd want to run on the host. |
I'm trying to run ansible-bender on a remote SSH host found in my inventory.
I have tried passing the custom inventory file as an additional argument to ansible-bender:
...but the inventory is ignored and the image is still built locally. Is there any way to run ansible-bender on the remote host specified in my inventory/playbook?
The text was updated successfully, but these errors were encountered: