I installed latest Ansible in an Ubuntu 14.04 Vagrant box with following 
commands from the official documentation.

$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible


The installation was successful (I also tried an upgrade later). However 
for some commands I run like "ansible -v", I get the following error and it 
displays the help.

ERROR! Missing target hosts

I had the same error for "ansible --list-hosts all". Then I enabled a host 
entry in /etc/ansible/hosts, and that command is working, showing the host 
I enabled.

I am new to Ansible and following a guide that was based on Ansible 1.9.*. 
I understand that the current version is 2.*. I tried to Google for a 
solution but couldn't find anything useful.

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 [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/e44e16ce-17f3-4417-8bb4-e76e64a8690d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to