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}}