Hi

 

Not sure if you able to assist with this question, but is it at all 
possible to setup a ‘wait’ function between roles in a playbook?

 

So if I have the following playbook:

 

---

- name: Config Web Servers

  hosts: all

  roles:

    - web_common

    - win_update

    - wintech_domain

    - win_reboot

 

web_common has a few PowerShell scripts that it runs at the end of the 
playbook, and it takes a few minutes in order for these to finish on the 
servers. Obviously after Ansible has run the PowerShell script in the 
playbook it considers the job as completed and moves on.

So what is happening is that the next role is being executed before the 
Powershell scripts have finished…and this is causing problems.

 

So I want to know if there is a way to add some kind of ‘wait’ function so 
that the next role on starts after a desired time?

 

Cheers

Mark

-- 
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/455dd72f-3739-44a2-8530-a63b58b071cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to