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

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEQQDNm%2B3K2Wt5dbvW3pb8aNXdg014WtSYm2FB%2BsGXgLc%2BC%2B1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to