Do not format output for kubespray or openshift deployments
The output comes from ansible and is already fully readable as it is. Also, because the previous task didn't have the 'failed_when: false' directive, it would never reach the 'print xxx outputs' task in case of failure, while showing the output twice on success. It is safe to just delete the task. Change-Id: I56b44aec0a549e184f46344ea362f655ab80b3b0
This commit is contained in:
parent
313d42c4c7
commit
4254e58174
@ -179,9 +179,3 @@ outputs:
|
||||
shell: |
|
||||
{{kubespray_command}} 2>&1 | tee {{playbook_dir}}/kubespray/playbook.log
|
||||
exit ${PIPESTATUS[0]}
|
||||
register: outputs
|
||||
- name: print kubespray outputs
|
||||
debug:
|
||||
var: (outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
|
||||
failed_when: outputs.rc != 0
|
||||
when: outputs.rc is defined
|
||||
|
@ -169,9 +169,3 @@ outputs:
|
||||
shell: |
|
||||
{{openshift_command}} 2>&1 | tee {{playbook_dir}}/openshift/playbook.log
|
||||
exit ${PIPESTATUS[0]}
|
||||
register: outputs
|
||||
- name: print openshift outputs
|
||||
debug:
|
||||
var: (outputs.stderr|default('')).split('\n')|union(outputs.stdout_lines|default([]))
|
||||
failed_when: outputs|failed
|
||||
when: outputs is defined
|
||||
|
Loading…
x
Reference in New Issue
Block a user