loop over roles?

17 views
Skip to first unread message

Dick Visser

unread,
Jul 28, 2016, 10:06:02 AM7/28/16
to ansible...@googlegroups.com
Hi

I have a bunch of roles in my playbook:


roles:
- role_1
- role_b
- { role: install_app, install_dir=/opt/foo }
- { role: install_app, install_dir=/opt/bar }
- { role: install_app, install_dir=/opt/baz }
- finalrole


Suppose I have a var that contains

apps:
foo
bar
baz

Would it be possible to loop over these in the roles section?

Thanks

Dick

Artyom Aleksandrov

unread,
Aug 8, 2016, 8:54:48 AM8/8/16
to Ansible Project
Hi, not it's not possible.

Same question on github - https://github.com/ansible/ansible/issues/12623
Reply all
Reply to author
Forward
0 new messages