Skip to content
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

Host file not found: inventory/local #29

Open
marcelloromani opened this issue Apr 12, 2017 · 0 comments
Open

Host file not found: inventory/local #29

marcelloromani opened this issue Apr 12, 2017 · 0 comments

Comments

@marcelloromani
Copy link

Hi,
I feel I must be missing something obvious, but I'm not able to make ansible see the inventory I have in a local file.
I'm using the image like this:

docker run --rm -it williamyeh/ansible:ubuntu16.04 ansible -m ping -i inventory/local all

The response I get is:

 [WARNING]: Host file not found: inventory/local

 [WARNING]: provided hosts list is empty, only localhost is available

 [WARNING]: No hosts matched, nothing to do

The inventory I'm referencing is:

cat ./inventory/local
[mysql]
localhost ansible_port=2222

[jira]
localhost ansible_port=2222

[confluence]
localhost ansible_port=2222

What am I doing wrong?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant