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 instance
  file: dest=/var/lib/tomcat-instance{1..3}  state=directory

But 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 [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/c56b427d-167c-4853-91dd-1bbbb1a5cc48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to