Auth initialization moven in another place
This commit is contained in:
parent
845f25d5a2
commit
b3a68067f7
|
@ -13,6 +13,12 @@
|
||||||
template: src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf
|
template: src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf
|
||||||
when: mongodb_logrotate
|
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
|
- name: Create mongodb user
|
||||||
user: name={{mongodb_user}} group={{mongodb_user}}
|
user: name={{mongodb_user}} group={{mongodb_user}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue