Merge "Add name to debug tasks"

This commit is contained in:
Zuul 2018-02-13 20:22:18 +00:00 committed by Gerrit Code Review
commit 8519911d3b
1 changed files with 8 additions and 4 deletions

View File

@ -92,7 +92,8 @@
failed_when: false
no_log: true
become: true
- debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
- name: "Debug output for task which failed: Run puppet host configuration for step {{step}}"
debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
when: outputs.rc is defined
failed_when: outputs.rc not in [0, 2]
######################################
@ -111,7 +112,8 @@
failed_when: false
no_log: true
become: true
- debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
- name: "Debug output for task which failed: Run docker-puppet tasks (generate config) during step {{step}}"
debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
when: outputs.rc is defined
failed_when: outputs.rc != 0
##################################################
@ -131,7 +133,8 @@
failed_when: false
no_log: true
become: true
- debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
- name: "Debug output for task which failed: Start containers for step {{step}}"
debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
when: outputs.rc is defined
failed_when: outputs.rc != 0
########################################################
@ -156,6 +159,7 @@
failed_when: false
no_log: true
become: true
- debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
- name: "Debug output for task which failed: Run docker-puppet tasks (bootstrap tasks) for step {{step}}"
debug: var=outputs.stdout_lines|default([])|union(outputs.stderr_lines|default([]))
when: outputs.rc is defined
failed_when: outputs.rc != 0