On Tuesday, 20 November 2018 18:10:39 CET
fahad.r...@gmail.com wrote:
> I have some Ansible tasks that perform unfortunately long operations and
> then pauses the playbook for 15 minutes before performing remainder of the
> tasks.
You should find out how to identify when the task is done and then use a do until loop[1], that gives a OK feedback.
> when i run the following playbook, I am not sure if the Playbook is paused
> or if my SSH connection has died or the playbook is stuck. It'd be nice to
> see some sort of progress output for the 15 minutes time. Is there a way I
> can make changes to the playbook to see the status?
>
>
> - name: Pause Playbook for 15 minutes
> pause:
> minutes: 15 minutes
If you still want to do this you can loop over pause.
- name: Pause Playbook for 15 minutes
pause:
minutes: 1
prompt: Time left {{ 15 - item | int }} minutes
with_sequence: start=0 end=14
[1]
https://docs.ansible.com/ansible/2.7/user_guide/playbooks_loops.html#do-until-loops
--
Kai Stian Olstad