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:
Martin André 2018-01-19 17:55:13 +01:00
parent 313d42c4c7
commit 4254e58174
2 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -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