On 27. juli 2017 18:59, rambius wrote:
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.
Put the win_nssm and the pause task in a file and use
- include: file.yml
with_items: "{{ services }}"
--
Kai Stian Olstad
--
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/bed7ae33-4c8e-7be2-eb2f-b78ce914e1b6%40olstad.com.
For more options, visit https://groups.google.com/d/optout.