mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
14
roles/mongodb_server/tasks/selinux.yml
Normal file
14
roles/mongodb_server/tasks/selinux.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
|
||||
- name: Set correct SELinux label
|
||||
sefcontext:
|
||||
target: "{{ mongo_db_path }}"
|
||||
setype: mongod_var_lib_t
|
||||
state: present
|
||||
tags: mongo
|
||||
|
||||
- name: Restore SELinux contexts
|
||||
command: restorecon -R {{ mongo_db_path }}
|
||||
changed_when: False
|
||||
tags: mongo
|
||||
|
Reference in New Issue
Block a user