We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7de840b + 11681c8 commit aa3a8bfCopy full SHA for aa3a8bf
tasks/configure.yml
@@ -8,6 +8,10 @@
8
user: name=mongodb uid={{ mongodb_uid }} group=mongodb state=present
9
when: mongodb_uid
10
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
+
15
- name: Register default MongoDB listen IP
16
set_fact: mongodb_listen_ip=127.0.0.1
17
when: ansible_local.mongodb.mongodb.mongodb_listen_ip is undefined
0 commit comments