Browse Source

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
changes/13/542813/2
Steven Hardy 4 years ago
parent
commit
7f4811779f
  1. 12
      common/deploy-steps-tasks.yaml

12
common/deploy-steps-tasks.yaml

@ -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
Loading…
Cancel
Save