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
This commit is contained in:
Monty Taylor 2015-10-17 13:34:23 -04:00
parent 0e9a8b4161
commit 09f401755f
1 changed files with 2 additions and 0 deletions

View File

@ -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