set correct selinux parameters for data dir

This commit is contained in:
Robert Kaussow 2018-07-08 02:00:42 +02:00
parent 57fb927696
commit 051691a354
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@
path: "{{ mongodb_storage_dbpath }}"
owner: "{{ mongodb_system_user }}"
group: "{{ mongodb_system_group }}"
recurse: yes
selevel: s0
serole : mongod_var_lib_t
setype: object_r
seuser: system_u
state: directory
- name: Create log dir '{{ mongodb_systemlog_path | dirname }}'