From 11681c84b3071ca208e3bca0d43af62c504f84a6 Mon Sep 17 00:00:00 2001 From: Deimosfr Date: Fri, 22 May 2015 22:21:53 +0200 Subject: [PATCH] feature: adding right reset when modifying uid --- tasks/configure.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 8f694b3..b10bd22 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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