Set default_flow_style=False for readability
A cosmetic change to format the playbook as block style.
Change-Id: I458cdaccfe903780282dd29577eedd4f6995fcbe
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/zuul/launcher/ansiblelaunchserver.py b/zuul/launcher/ansiblelaunchserver.py
index 844b390..d1171f9 100644
--- a/zuul/launcher/ansiblelaunchserver.py
+++ b/zuul/launcher/ansiblelaunchserver.py
@@ -697,7 +697,7 @@
parameters, timeout))
play = dict(hosts='node', name='Job body',
tasks=tasks)
- playbook.write(yaml.dump([play]))
+ playbook.write(yaml.dump([play], default_flow_style=False))
with open(jobdir.post_playbook, 'w') as playbook:
tasks = []
@@ -708,7 +708,7 @@
tasks.extend(self._makeFTPTask(jobdir, publisher))
play = dict(hosts='node', name='Publishers',
tasks=tasks)
- playbook.write(yaml.dump([play]))
+ playbook.write(yaml.dump([play], default_flow_style=False))
with open(jobdir.config, 'w') as config:
config.write('[defaults]\n')