Skip to content

Commit 0bb65bd

Browse files
Merge pull request #108 from oci-hpc/2.10.2_ds_nfs_permission_fix
setting permission for nfs folders
2 parents 98985c0 + 7ddcd4e commit 0bb65bd

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

playbooks/roles/nfs-client/tasks/debian.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@
2828
fstype: nfs
2929
state: mounted
3030
when: options==""
31+
32+
- name: make sure the permissions of the share directory are right
33+
become: true
34+
file:
35+
path: "{{ local_path }}"
36+
state: directory
37+
owner: debian
38+
group: "{{privilege_group_name}}"
39+
mode: 0775

playbooks/roles/nfs-client/tasks/el.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@
2929
fstype: nfs
3030
state: mounted
3131
when: options==""
32+
33+
- name: make sure the permissions of the share directory are right
34+
become: true
35+
file:
36+
path: "{{ local_path }}"
37+
state: directory
38+
owner: opc
39+
group: "{{privilege_group_name}}"
40+
mode: 0775

playbooks/roles/nfs-client/tasks/ubuntu.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@
2828
fstype: nfs
2929
state: mounted
3030
when: options==""
31+
32+
- name: make sure the permissions of the share directory are right
33+
become: true
34+
file:
35+
path: "{{ local_path }}"
36+
state: directory
37+
owner: ubuntu
38+
group: "{{privilege_group_name}}"
39+
mode: 0775

0 commit comments

Comments
 (0)