Skip to content

Commit

Permalink
Merge pull request #21 from deimosfr/master
Browse files Browse the repository at this point in the history
feature: adding right reset when modifying uid
  • Loading branch information
UnderGreen committed May 24, 2015
2 parents 7de840b + 11681c8 commit aa3a8bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
user: name=mongodb uid={{ mongodb_uid }} group=mongodb state=present
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
set_fact: mongodb_listen_ip=127.0.0.1
when: ansible_local.mongodb.mongodb.mongodb_listen_ip is undefined
Expand Down

0 comments on commit aa3a8bf

Please sign in to comment.