Skip to content

Commit b3a6806

Browse files
author
Sergei Antipov
committed
Auth initialization moven in another place
1 parent 845f25d commit b3a6806

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/configure.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
template: src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf
1414
when: mongodb_logrotate
1515

16+
- name: ensure mongodb started and enabled
17+
service: name={{ mongodb_daemon_name }} state=started enabled=yes
18+
19+
- include: auth_initialization.yml
20+
when: mongodb_conf_auth
21+
1622
- name: Create mongodb user
1723
user: name={{mongodb_user}} group={{mongodb_user}}
1824

0 commit comments

Comments
 (0)