Hello,

The way I am implementing Ansible will mean that I will not know the IP of 
the server I am configuring until I am launching the Playbook. I have tried 
passing in a variable for the IP for Ansible complains with:

ERROR: provided hosts list is empty

Here is a look at my .yml and command line:

---
- hosts: '{{ test }}'

ansible-playbook test.yml --extra-vars "test=192.168.1.24"

Is it possible to pass this in as a command line argument? 

I am currently using Ubuntu 12.04 as the Ansible server with Ansible 
v.1.4.4.

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/9cde569e-b5c3-40d6-b9cc-81e20f0d95f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to