Skip to content

Commit

Permalink
fix: Use /tmp instead of a current directory
Browse files Browse the repository at this point in the history
Signed-off-by: Mikołaj Baranowski <[email protected]>
  • Loading branch information
mikolajb committed Oct 7, 2023
1 parent 610929e commit b5ca494
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ansible/roles/version/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit b5ca494

Please sign in to comment.