Rolling updates with pause

33 views
Skip to first unread message

Moti Heller

unread,
May 20, 2014, 2:17:08 AM5/20/14
to ansible...@googlegroups.com, mo...@checkpoint.com
Hi,

I have the following requirement for deploying a java web application on multiple hosts:

1. Copy the deployed artifact (war file) in parallel to the relevant hosts to a temp folder
2. Deploy the app (stop tomcat, delete old app, copy new war from temp folder, start tomcat) one host at a time with a prompt between each host in order to verify that the deployment is successful

Can this be achieved in a single playbook (part of it is parallel and part is serial:1 with a prompt) or 2 playbooks are required? (one for parallel copy and one for serial deployment with prompt)

Thanks,
Moti.

Serge van Ginderachter

unread,
May 20, 2014, 7:35:40 AM5/20/14
to ansible...@googlegroups.com, mo...@checkpoint.com

On 20 May 2014 08:17, Moti Heller <motih...@gmail.com> wrote:
Can this be achieved in a single playbook (part of it is parallel and part is serial:1 with a prompt) or 2 playbooks are required? (one for parallel copy and one for serial deployment with prompt)

​In a single playbook, yes, consisting of two plays, each with a separate setting for serial.

Instead of prompting, why not let ansible do some kind of health check with the uri module?​

Moti Heller

unread,
May 20, 2014, 8:45:24 AM5/20/14
to ansible...@googlegroups.com, mo...@checkpoint.com
Hi Serge,

for some applications, manual validation is required - thus the requirement for a prompt before doing a deployment to the next node

Thanks,
Moti.
Reply all
Reply to author
Forward
0 new messages