Skip to content

Commit

Permalink
fix(ansible): fixing permissions on tmp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
timothystewart6 committed Sep 7, 2022
1 parent a6b2a95 commit 4365a2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions roles/k3s/post/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
file:
path: /tmp/k3s
state: directory
owner: root
group: root
mode: 0644
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: 0755
with_items: "{{ groups['master'] }}"
run_once: true

- name: Copy metallb CRs manifest to first master
template:
src: "metallb.crs.j2"
dest: "/tmp/k3s/metallb-crs.yaml"
owner: root
group: root
mode: 0644
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
mode: 0755
with_items: "{{ groups['master'] }}"
run_once: true

Expand Down

0 comments on commit 4365a2a

Please sign in to comment.