Hi, This is my first take at Ansible and I can't figure out what I am doing wrong. I have 1 vagrant VM host with a static private IP provided for testing purposes on my personal Mac.
› ansible --version ansible 2.0.1.0 config file = configured module search path = Default w/o overrides My .yml file looks like this ( borrowed & modified from an Ansible example playbook)- --- - hosts: all sudo: yes gather_facts: no › cat /etc/ansible/hosts [postgresVMserver] 192.168.33.10 › ls -la /etc/ansible/hosts -rw-r--r-- 1 root wheel 34 Mar 27 01:11 /etc/ansible/hosts When I run the playbook, I get › ansible-playbook postgresql.yml [WARNING]: provided hosts list is empty, only localhost is available [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY *************************************************************************** skipping: no hosts matched PLAY *************************************************************************** skipping: no hosts matched PLAY RECAP ********************************************************************* When I run the following command to list all the hosts, I get - › ansible -i hosts --list-hosts all ERROR! Specified hosts options do not match any hosts What am I doing wrong? Please let me know if you need more information. Thanks -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/43969904-b219-4b21-86e1-ca828a7840bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
