@ -6,6 +6,7 @@
#####################################################
- name : Write the config_step hieradata
copy : content="{{dict(step=step|int)|to_json}}" dest=/etc/puppet/hieradata/config_step.json force=true mode=0600
become : true
- name : Run puppet host configuration for step {{step}}
command : >-
puppet apply
@ -17,6 +18,7 @@
register : outputs
failed_when : false
no_log : true
become : true
- debug : var=(outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
when : outputs is defined
failed_when : outputs|failed
@ -35,6 +37,7 @@
register : outputs
failed_when : false
no_log : true
become : true
- debug : var=(outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
when : outputs is defined
failed_when : outputs|failed
@ -45,6 +48,7 @@
stat:
path : /var/lib/tripleo-config/hashed-docker-container-startup-config-step_{{step}}.json
register : docker_config_json
become : true
# Note docker-puppet.py generates the hashed-*.json file, which is a copy of
# the *step_n.json with a hash of the generated external config added
# This acts as a salt to enable restarting the container if config changes
@ -59,6 +63,7 @@
register : outputs
failed_when : false
no_log : true
become : true
- debug : var=(outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
when : outputs is defined
failed_when : outputs|failed
@ -69,6 +74,7 @@
stat:
path : /var/lib/docker-puppet/docker-puppet-tasks{{step}}.json
register : docker_puppet_tasks_json
become : true
- name : Run docker-puppet tasks (bootstrap tasks)
shell : python /var/lib/docker-puppet/docker-puppet.py
environment:
@ -82,6 +88,7 @@
register : outputs
failed_when : false
no_log : true
become : true
- debug : var=(outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
when : outputs is defined
failed_when : outputs|failed