From b3a68067f7d7259b44a14ab010674e5f54b5eb0e Mon Sep 17 00:00:00 2001 From: Sergei Antipov Date: Tue, 17 Feb 2015 19:17:50 +0600 Subject: [PATCH] Auth initialization moven in another place --- tasks/configure.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 8a7ab2d..2f76e1b 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -13,6 +13,12 @@ template: src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf when: mongodb_logrotate +- name: ensure mongodb started and enabled + service: name={{ mongodb_daemon_name }} state=started enabled=yes + +- include: auth_initialization.yml + when: mongodb_conf_auth + - name: Create mongodb user user: name={{mongodb_user}} group={{mongodb_user}}