feature: adding right reset when modifying uid
This commit is contained in:
parent
7de840b678
commit
11681c84b3
|
@ -8,6 +8,10 @@
|
||||||
user: name=mongodb uid={{ mongodb_uid }} group=mongodb state=present
|
user: name=mongodb uid={{ mongodb_uid }} group=mongodb state=present
|
||||||
when: mongodb_uid
|
when: mongodb_uid
|
||||||
|
|
||||||
|
- name: reset mongodb folder and subfolders with new uid
|
||||||
|
file: path={{ mongodb_conf_dbpath }} owner=mongodb group=mongodb follow=yes recurse=yes state=directory
|
||||||
|
when: mongodb_uid
|
||||||
|
|
||||||
- name: Register default MongoDB listen IP
|
- name: Register default MongoDB listen IP
|
||||||
set_fact: mongodb_listen_ip=127.0.0.1
|
set_fact: mongodb_listen_ip=127.0.0.1
|
||||||
when: ansible_local.mongodb.mongodb.mongodb_listen_ip is undefined
|
when: ansible_local.mongodb.mongodb.mongodb_listen_ip is undefined
|
||||||
|
|
Loading…
Reference in New Issue