feature: adding right reset when modifying uid

This commit is contained in:
Deimosfr 2015-05-22 22:21:53 +02:00
parent 7de840b678
commit 11681c84b3
1 changed files with 4 additions and 0 deletions

View File

@ -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