Rolling updates with pause

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.

​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?​

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.