set correct selinux parameters for data dir
This commit is contained in:
parent
57fb927696
commit
051691a354
@ -18,7 +18,10 @@
|
|||||||
path: "{{ mongodb_storage_dbpath }}"
|
path: "{{ mongodb_storage_dbpath }}"
|
||||||
owner: "{{ mongodb_system_user }}"
|
owner: "{{ mongodb_system_user }}"
|
||||||
group: "{{ mongodb_system_group }}"
|
group: "{{ mongodb_system_group }}"
|
||||||
recurse: yes
|
selevel: s0
|
||||||
|
serole : mongod_var_lib_t
|
||||||
|
setype: object_r
|
||||||
|
seuser: system_u
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Create log dir '{{ mongodb_systemlog_path | dirname }}'
|
- name: Create log dir '{{ mongodb_systemlog_path | dirname }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user