Merge "Fix all outputs|failed and outputs is defined"

This commit is contained in:
Zuul 2017-11-21 11:52:07 +00:00 committed by Gerrit Code Review
commit bdc1697af5
2 changed files with 9 additions and 9 deletions

View File

@ -25,7 +25,7 @@
no_log: true
become: true
- debug: var=(outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
when: outputs is defined
when: outputs.rc is defined
failed_when: outputs.rc not in [0, 2]
######################################
# Generate config via docker-puppet.py
@ -44,8 +44,8 @@
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
when: outputs.rc is defined
failed_when: outputs.rc != 0
##################################################
# Per step starting of the containers using paunch
##################################################
@ -70,8 +70,8 @@
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
when: outputs.rc is defined
failed_when: outputs.rc != 0
########################################################
# Bootstrap tasks, only performed on bootstrap_server_id
########################################################
@ -95,5 +95,5 @@
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
when: outputs.rc is defined
failed_when: outputs.rc != 0

View File

@ -163,5 +163,5 @@ outputs:
- name: print kubespray outputs
debug:
var: (outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
failed_when: outputs|failed
when: outputs is defined
failed_when: outputs.rc != 0
when: outputs.rc is defined