On Wednesday, March 6, 2019 at 5:07:20 PM UTC+1, Doug OLeary wrote:
>
> [...]
> I'd like to loop at the play level rather than the task level.
>

 To loop over a set of tasks put the tasks into a file *set-of-tasks.yml * 
and use include_tasks

- name: Loop tasks
  include_tasks: set-of-tasks.yml
   loop:
    - admins
    - ms1s
         -  ms2s

-- 
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/809c0528-5cb1-4ec5-9007-c5bf48f38be7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to