Skip to content

Commit 9c15a95

Browse files
committed
fix compute-init rsync owner/group options
1 parent 2798417 commit 9c15a95

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ansible/roles/compute_init/tasks/install.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
rsync_opts:
2323
- "-p"
2424
- "--chmod=D770,F644"
25-
- "--owner=root"
26-
- "--group=root"
2725
recursive: true
2826
use_ssh_args: true
2927
become: true
@@ -57,6 +55,14 @@
5755
- src: ../../eessi
5856
dest: roles/
5957

58+
- name: Ensure ownership is root after sync
59+
ansible.builtin.file:
60+
path: "/etc/ansible-init/playbooks/"
61+
owner: root
62+
group: root
63+
recurse: true
64+
become: true
65+
6066
- name: Add filter_plugins to ansible.cfg
6167
ansible.builtin.lineinfile:
6268
path: /etc/ansible-init/ansible.cfg

0 commit comments

Comments
 (0)