Re: [ansible-project] ansible inventory file not found when running from subfolder

2018-04-23 Thread Brian Coca
use -v on the runs that don't work, you probably have another
ansible.cfg there overriding the one you've shown.



-- 
--
Brian Coca

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7co1H-dDR%2Bp52m_gn8RBM0Ut%3DFJX1LXX4sQ8Y7%3DbHaRAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] ansible inventory file not found when running from subfolder

2018-04-14 Thread Benny Kusman
Hi,

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
ansible 2.5.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = 
[u'/home/ansible/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  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 
good.

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.

Thank you

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3505dcc9-7e1d-46cd-b768-97bfc48cd3bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.