Merge pull request #21 from deimosfr/master

feature: adding right reset when modifying uid
This commit is contained in:
Sergei Antipov 2015-05-24 12:52:39 +05:00
commit aa3a8bf574
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