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