You can't do this and need to set the variable on every host.
On Sun, Mar 9, 2014 at 12:11 AM, senorsmile <[email protected]> wrote: > 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. > > -- > 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/2f1fc5b4-d41d-4a63-8b47-a09dd96fcc50%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/2f1fc5b4-d41d-4a63-8b47-a09dd96fcc50%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEVJ8QPBrpr-uB1BF_m%3DhkH%2Bxg3tLt7eBixf_sDoP-G9QSW9Eg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
