inventory variable range

58 views
Skip to first unread message

senorsmile

unread,
Mar 9, 2014, 12:11:51 AM3/9/14
to ansible...@googlegroups.com
I am not quite sure how to do this.  E.g. 

I have a group of hosts

www[100:150] 

and I need to assign their hostnames: 

ansible_ssh_host = www[100:150].example.com


obviously I can't do the above (I did try though).  I assume there needs to be some abstraction and some sort of yaml magic happening here.  

Michael DeHaan

unread,
Mar 9, 2014, 11:57:09 AM3/9/14
to ansible...@googlegroups.com
You can't do this and need to set the variable on every host. 




--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2f1fc5b4-d41d-4a63-8b47-a09dd96fcc50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages