Rolling update with serial, how to delay between each serial?

718 views
Skip to first unread message

howa...@gmail.com

unread,
Dec 25, 2013, 2:55:10 AM12/25/13
to ansible...@googlegroups.com
I am using the serial to limit everytime I can deploy to only one machine at a time, but is it possible to pause say every 10 minutes between each deployment?

Brian Coca

unread,
Dec 25, 2013, 7:44:37 AM12/25/13
to ansible...@googlegroups.com
end/start the playbook with a pause: action

howa...@gmail.com

unread,
Dec 25, 2013, 12:21:44 PM12/25/13
to ansible...@googlegroups.com
Sound like a dirty workaround..I only want the pause ONLY if they are between the "serial", if I run on one node only then I don't want the pause, is it possible?

Thanks.

Michael DeHaan

unread,
Dec 25, 2013, 12:25:39 PM12/25/13
to ansible...@googlegroups.com
What Brian suggests is a great idea and not dirty in the least.

You can easily include tasks or roles in a different playbook if you have some other use case where you don't wish to pause.


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Michael DeHaan <mic...@ansibleworks.com>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

Sankalp Khare

unread,
Feb 10, 2015, 3:07:25 PM2/10/15
to ansible...@googlegroups.com

On Wednesday, 25 December 2013 18:14:37 UTC+5:30, Brian Coca wrote:
end/start the playbook with a pause: action

@Bryan, how would that help if I had multiple plays in the playbook, only one (or a few) of which I was doing with "serial", and between whose iterations I would like to have pauses.

Thanks,
Sankalp
 
Reply all
Reply to author
Forward
0 new messages