From 09f401755f55a1d80868b9d61b83dddffd33c493 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 17 Oct 2015 13:34:23 -0400 Subject: [PATCH] Add 'serial' keyword to restart playbook 'forks' control how many parallel tasks ansible runs, but it does each task in a play in parallel across those forks. 'serial' says to run all the tasks in a play on a host before moving to the next one. Change-Id: I780f55d26bae77a39065e9d9c08e989f9b3e4ef7 --- .../files/ansible/playbooks/restart_jenkins_masters.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/openstack_project/files/ansible/playbooks/restart_jenkins_masters.yaml b/modules/openstack_project/files/ansible/playbooks/restart_jenkins_masters.yaml index 0946608b8d..bdad5bf6af 100644 --- a/modules/openstack_project/files/ansible/playbooks/restart_jenkins_masters.yaml +++ b/modules/openstack_project/files/ansible/playbooks/restart_jenkins_masters.yaml @@ -1,5 +1,7 @@ --- - hosts: 'jenkins0*.openstack.org' + # Do the entire play completely for one host at a time + serial: 1 # Treat any errors as fatal so that we don't stop all the jenkins # masters. any_errors_fatal: true