Is it possible to call a role multiple times in a loop like this:
vars: my_array: - foo - bar - baz roles: - role: foobar with_items: my
Here is a code sample for using include_role looping on my_array:
- name: Use role in loop include_role: name: myrole loop: "{{ my_array }}"