From 2e7fd0882d7059a630ad06c1cbf017d98c4d3612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Baranowski?= Date: Sat, 7 Oct 2023 13:51:28 +0200 Subject: [PATCH] fix: Use /tmp instead of a current directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MikoĊ‚aj Baranowski --- ansible/roles/version/tasks/main.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible/roles/version/tasks/main.yaml b/ansible/roles/version/tasks/main.yaml index f78d02e26..5f646bdd3 100644 --- a/ansible/roles/version/tasks/main.yaml +++ b/ansible/roles/version/tasks/main.yaml @@ -42,12 +42,15 @@ - name: copy kubeadm config template: src: "kubeadm-conf.yaml.tmpl" - dest: "kubeadm-conf.yaml" + dest: "/tmp/kubeadm-conf.yaml" - name: determine kubernetes images - shell: kubeadm config images list --config kubeadm-conf.yaml + shell: kubeadm config images list --config /tmp/kubeadm-conf.yaml register: kubernetes_kubeadm_images +- name: Cleanup kubeadm-conf + shell: rm /tmp/kubeadm-conf.yaml + - name: set kubernetes images set_fact: kubernetes_images: "{{ kubernetes_kubeadm_images.stdout_lines }}"