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

---
- name: start services
  hosts: win_services
  - name: install and start services
    win_nssm:
      name: "{{ item }}"
      application: "{{ APP_DIRECTORY }}\\app.exe"
      app_parameters: 
        "-RUN_AS": "CONSOLE"
      start_mode: manual
      stdout_file: "{{ LOG_DIRECTORY }}\\{{ item }}_stdout.log"
      stderr_file: "{{ LOG_DIRECTORY }}\\{{ item }}_stderr.log"
      state: started
    with_items:
- "{{ services }}"

We want to pause a certain amount of seconds, say 90, after each service is 
started. How can we do this?

I tried to implement it with handlers, and pause in the handler, but that 
did not succeed.

Thank you very much in advance!

Regards
rambius

-- 
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/daa25337-09c0-4d6b-9f0a-25f78ce88c6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to