Set pipefail in case tar fails (#5506)

This commit is contained in:
Erwan Miran 2020-01-06 11:25:34 +01:00 committed by Kubernetes Prow Robot
parent 5fab610fab
commit 303c3654a1

View file

@ -127,7 +127,7 @@
- "{{ my_etcd_node_certs }}" - "{{ my_etcd_node_certs }}"
- name: Gen_certs | Gather node certs - name: Gen_certs | Gather node certs
shell: "tar cfz - -C {{ etcd_cert_dir }} -T /dev/stdin <<< {{ my_etcd_node_certs|join(' ') }} | base64 --wrap=0" shell: "set -o pipefail && tar cfz - -C {{ etcd_cert_dir }} -T /dev/stdin <<< {{ my_etcd_node_certs|join(' ') }} | base64 --wrap=0"
args: args:
executable: /bin/bash executable: /bin/bash
warn: false warn: false