Skip to content
Snippets Groups Projects
Commit 303c3654 authored by Erwan Miran's avatar Erwan Miran Committed by Kubernetes Prow Robot
Browse files

Set pipefail in case tar fails (#5506)

parent 5fab610f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment