I have a playbook which requires to perform some actions for each string in 
a comma separated list. So i put the repeatable tasks in another playbook 
and included that in a master playbook using with_items:


     - include:included.yaml module="{{item}}"
       with_items: "{{modules.split(',')}}"


The included playbook uses the value of module but with the way i am 
calling it, it is not getting the value in var module. I have tried many 
variations to this like:

     - include: install_service.yaml 
       vars:
          module="{{item}}"
       with_items: "{{modules.split(',')}}"




But none of them works. What is it that i am doing wrong 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/96f58e3a-d493-4684-8de5-c4d59bde6829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to