Set pipefail in case tar fails (#5506)

pull/5511/head
Erwan Miran 2020-01-06 11:25:34 +01:00 committed by Kubernetes Prow Robot
parent 5fab610fab
commit 303c3654a1
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@
- "{{ my_etcd_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:
executable: /bin/bash
warn: false