Pause after each iteration in a loop

Hello,

Assume we have the following in an inventory

[win_services]
host1 services=‘[“service1”, “service2”, “service3”, “service4”]’
host2 services=‘[“service5”, “service6”, “service7”, “service8”]’
host3 services=‘[“service9”, “service10”, “service11”, “service12”, “service13”]’
host4 services=‘[“service14”, “service15”, “service16”, “service17”, “service18”]’
host5 services=‘[“service19”, “service20”, “service21”, “service22”]’
host6 services=‘[“service23”, “service24”, “service25”, “service26”]’

Then using win_nssm we start the above services in the following way

Put the win_nssm and the pause task in a file and use
- include: file.yml
   with_items: "{{ services }}"

четвъртък, 27 юли 2017 г., 13:29:54 UTC-4, Kai Stian Olstad написа:

Put the win_nssm and the pause task in a file and use

  • include: file.yml
    with_items: “{{ services }}”

Thank you. I am trying that.

Regards
rambius