diff options
author | Zuul <zuul@review.openstack.org> | 2017-11-09 03:21:13 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-11-09 03:21:13 +0000 |
commit | 449623cd39c1da0036a52ab2b78052ce5cf16dbc (patch) | |
tree | a1abeb089c5bee29b6301b00043133e30f2ed336 /common | |
parent | cacd08992ccdff72d1fb00005072fc0d0cd69343 (diff) | |
parent | 0ae06e10e1db3e25655fc392736248deff6516c1 (diff) |
Merge "Add --detailed-exitcodes when running puppet via ansible" into stable/pike
Diffstat (limited to 'common')
-rw-r--r-- | common/deploy-steps-tasks.yaml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/deploy-steps-tasks.yaml b/common/deploy-steps-tasks.yaml index 785095b6..79a8bc80 100644 --- a/common/deploy-steps-tasks.yaml +++ b/common/deploy-steps-tasks.yaml @@ -14,16 +14,17 @@ command: >- puppet apply {{ host_puppet_config_debug|default('') }} --modulepath=/etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules + --detailed-exitcodes --logdest syslog --logdest console --color=false /var/lib/tripleo-config/puppet_step_config.pp - changed_when: false + changed_when: outputs.rc == 2 check_mode: no register: outputs failed_when: false no_log: true - debug: var=(outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([])) when: outputs is defined - failed_when: outputs|failed + failed_when: outputs.rc not in [0, 2] ###################################### # Generate config via docker-puppet.py ###################################### |