So i got this error:
[WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'
This is the ansible information
[ansible@laansible1]$ ansible --version
config file = /etc/ansible/ansible.cfg
configured module search path =
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5
20150623 (Red Hat 4.8.5-14)]
ans inside /etc/ansible/ansible.cfg, i have define inventory file is:
inventory = /home/ansible/hosts
When i run the play/playbook from the same folder as "hosts" file, it's
But im not able to run it from the subfolders.. it will complain that it
cant find the hosts file. Is it expected ? i thought by defining the
inventory file in the ansible.cfg, it will be ok to run wherever you want.
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.