From 339e36fbe68108992f928c07f2c8a490a68d0886 Mon Sep 17 00:00:00 2001 From: Erwan Miran Date: Wed, 12 Feb 2020 16:50:51 +0100 Subject: [PATCH] Files to archive can be passed directly (#5571) --- roles/etcd/tasks/gen_certs_script.yml | 2 +- roles/kubernetes-apps/helm/tasks/gen_helm_tiller_certs.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/etcd/tasks/gen_certs_script.yml b/roles/etcd/tasks/gen_certs_script.yml index 4f9444b95..aa8e98b93 100644 --- a/roles/etcd/tasks/gen_certs_script.yml +++ b/roles/etcd/tasks/gen_certs_script.yml @@ -127,7 +127,7 @@ - "{{ my_etcd_node_certs }}" - name: Gen_certs | Gather node certs - shell: "set -o pipefail && 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 }} {{ my_etcd_node_certs|join(' ') }} | base64 --wrap=0" args: executable: /bin/bash warn: false diff --git a/roles/kubernetes-apps/helm/tasks/gen_helm_tiller_certs.yml b/roles/kubernetes-apps/helm/tasks/gen_helm_tiller_certs.yml index f6500f7c1..860ca0e3a 100644 --- a/roles/kubernetes-apps/helm/tasks/gen_helm_tiller_certs.yml +++ b/roles/kubernetes-apps/helm/tasks/gen_helm_tiller_certs.yml @@ -59,7 +59,7 @@ - name: Gen_helm_tiller_certs | Gather helm client certs # noqa 303 - tar is called intentionally here, but maybe this should be done with the slurp module - shell: "tar cfz - -C {{ helm_home_dir }} -T /dev/stdin <<< {{ helm_client_certs|join(' ') }} | base64 --wrap=0" + shell: "tar cfz - -C {{ helm_home_dir }} {{ helm_client_certs|join(' ') }} | base64 --wrap=0" args: executable: /bin/bash no_log: true