Skip to content

Commit 72c6654

Browse files
authored
Merge pull request #141 from mhavas/set-setype-on-data-directory
Set selinux type on data directory
2 parents 53d39d8 + 346c0ee commit 72c6654

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/configure.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
path: "{{ mongodb_storage_dbpath }}"
4242
state: directory
4343
owner: "{{ mongodb_user }}"
44+
setype: 'mongod_var_lib_t'
4445
recurse: yes
4546

4647
- name: Configure mongodb

0 commit comments

Comments
 (0)