Auth initialization moven in another place

This commit is contained in:
Sergei Antipov 2015-02-17 19:17:50 +06:00
parent 845f25d5a2
commit b3a68067f7
1 changed files with 6 additions and 0 deletions

View File

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