First; thanks for replying. I appreciate it. I've used include_tasks in a different context so am a little familiar with it. I would have just the reboot and wait10 tasks in set-of-tasks.yml. The tasks would only operate against the current host group? Intriguing. I'll give that a try.
Thanks again for the tip. I appreciate it. On Wednesday, March 6, 2019 at 12:15:22 PM UTC-6, Vladimir Botka wrote: > > > 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/4c1c0bff-db74-48ed-ba04-0c19f0323144%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
