--
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/a1c3c3ee-f51e-42c1-99bf-677ef6eaa8e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
tasks:
- name: Debug
debug: msg="{{ item }}"
with_items:
"{{ roles_to_deploy }}"roles:
"{{ roles_to_deploy }}"Hmmm, this doesn't seem to work for the roles parameter.
I tried the following command:
ansible-playbook test.yml -i inventories/local -e '{"roles_to_deploy":["role1","role2"]}'
The test.yml playbook just had:tasks:
- name: Debug
debug: msg="{{ item }}"
with_items:
"{{ roles_to_deploy }}"
All good.
I then tried the same command with my original playbook which has:roles:
"{{ roles_to_deploy }}"
--
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/CAJZu1hX8rwGkGTO1xK9%3D90P3DNuk-1SZB_65u6oPz4ow%3D-AzOA%40mail.gmail.com.