Add name to debug tasks

This makes it clearer that the previous task failed, which isn't
immediately evident from the ansible task output due to the failed_when
on those tasks.

Change-Id: I765208d5865f6e5a292e5b52c572e2e79540c663
Closes-Bug: #1748443
This commit is contained in:
Steven Hardy 2018-02-09 13:18:49 +00:00
parent d51c3e3103
commit 7f4811779f

View File

@ -92,7 +92,8 @@
failed_when: false failed_when: false
no_log: true no_log: true
become: 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 when: outputs.rc is defined
failed_when: outputs.rc not in [0, 2] failed_when: outputs.rc not in [0, 2]
###################################### ######################################
@ -111,7 +112,8 @@
failed_when: false failed_when: false
no_log: true no_log: true
become: 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 when: outputs.rc is defined
failed_when: outputs.rc != 0 failed_when: outputs.rc != 0
################################################## ##################################################
@ -131,7 +133,8 @@
failed_when: false failed_when: false
no_log: true no_log: true
become: 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 when: outputs.rc is defined
failed_when: outputs.rc != 0 failed_when: outputs.rc != 0
######################################################## ########################################################
@ -156,6 +159,7 @@
failed_when: false failed_when: false
no_log: true no_log: true
become: 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 when: outputs.rc is defined
failed_when: outputs.rc != 0 failed_when: outputs.rc != 0