Set pipefail in case tar fails (#5506)
This commit is contained in:
parent
5fab610fab
commit
303c3654a1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue