mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
15 lines
265 B
YAML
15 lines
265 B
YAML
---
|
|
|
|
- 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
|
|
|