Skip to content

Commit aa3a8bf

Browse files
committed
Merge pull request #21 from deimosfr/master
feature: adding right reset when modifying uid
2 parents 7de840b + 11681c8 commit aa3a8bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/configure.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
user: name=mongodb uid={{ mongodb_uid }} group=mongodb state=present
99
when: mongodb_uid
1010

11+
- name: reset mongodb folder and subfolders with new uid
12+
file: path={{ mongodb_conf_dbpath }} owner=mongodb group=mongodb follow=yes recurse=yes state=directory
13+
when: mongodb_uid
14+
1115
- name: Register default MongoDB listen IP
1216
set_fact: mongodb_listen_ip=127.0.0.1
1317
when: ansible_local.mongodb.mongodb.mongodb_listen_ip is undefined

0 commit comments

Comments
 (0)