Skip to content

Commit 25512af

Browse files
added file permissions to must gather and tar ball
1 parent 19f9288 commit 25512af

File tree

1 file changed

+17
-1
lines changed
  • playbooks/roles/must-gather/tasks

1 file changed

+17
-1
lines changed

playbooks/roles/must-gather/tasks/main.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@
88
- debug:
99
var: must_gather_output.stdout_lines
1010

11+
- name: Set permissions for must-gather directory
12+
file:
13+
path: "{{ must_gather_dest }}"
14+
owner: root
15+
group: root
16+
mode: '0755'
17+
state: directory
18+
1119
- name: Compress must-gather logs
1220
command: tar -czf {{ must_gather_archive }} -C {{ must_gather_dest | dirname }} {{ must_gather_dest | basename }}
1321
args:
14-
creates: "{{ must_gather_archive }}"
22+
creates: "{{ must_gather_archive }}"
23+
24+
- name: Set permissions for must-gather tarball
25+
file:
26+
path: "{{ must_gather_archive }}"
27+
owner: root
28+
group: root
29+
mode: '0644'
30+
state: file

0 commit comments

Comments
 (0)