On Tuesday, 20 November 2018 18:10:39 CET [email protected] 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
--
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/1752151.7NPsdQfrLM%40x1.
For more options, visit https://groups.google.com/d/optout.