From feed2ac442503f3ee7ad05dac79282db4570a5e9 Mon Sep 17 00:00:00 2001 From: "tommaso.piccioli" Date: Tue, 13 Oct 2015 15:10:16 +0200 Subject: [PATCH] . --- mongodb-org/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mongodb-org/tasks/main.yml b/mongodb-org/tasks/main.yml index bb38f6fe..f5e08022 100644 --- a/mongodb-org/tasks/main.yml +++ b/mongodb-org/tasks/main.yml @@ -32,6 +32,16 @@ when: mongodb_install_conf tags: mongodb +- name: Create the mongodb db directory + file: dest={{ mongodb_dbpath }} state=directory owner={{ mongodb_user }} group={{ mongodb_group }} mode=0755 + when: mongodb_install_conf + tags: mongodb + +- name: Create the mongodb log directory + file: dest={{ mongodb_logdir }} state=directory owner={{ mongodb_user }} group={{ mongodb_group }} mode=0755 + when: mongodb_install_conf + tags: mongodb + - name: Install the cron job that manages log files rotation template: src=mongo_log_rotate.sh.j2 dest=/etc/cron.daily/mongo_log_rotate owner=root group=root mode=0555 tags: mongodb