--I am trying to create multiple directories with different names e.g tomacat-1, tomcat-2 etc..But i want to do this in the form of a loop. Kindly help me with the yaml syntax.this is what i tried- name: Creating multiple tomcat instancefile: dest=/var/lib/tomcat-instance{1..3} state=directoryBut instead of creating three directories, it creates only one with name "tomcat-instance{1..3}"Also i would like each of these folders to have a unique port id and shutdown port e.g -p 8000 -c 8006
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/c56b427d-167c-4853-91dd-1bbbb1a5cc48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Evgen,This works fine. But i keep gettign this error "One or more undefined variables: 'unicode object' has no attribute 'item'"Please see it clearly in the snapshot attached.Thanks so much for the help.Regards,Deborah.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/cp5p6rbYkEo/unsubscribe.
To unsubscribe from this group and all its topics, 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/109ab9f8-49e0-4390-86e3-dcf927f98a04%40googlegroups.com.
register: dies
it shoild be:
register: dirs