Skip to content

Commit 94ebb6e

Browse files
author
Sergei Antipov
committed
Fixed problem with mongodb_users param
1 parent 58ccde4 commit 94ebb6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/auth_initialization.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,12 @@
5050
name: "{{ item.name }}"
5151
password: "{{ item.password }}"
5252
roles: "{{ item.roles }}"
53-
replica_set: "{{ mongodb_conf_replSet }}"
5453
login_user: "{{ mongodb_user_admin_name }}"
5554
login_password: "{{ mongodb_user_admin_password }}"
5655
login_port: "{{ mongodb_conf_port }}"
5756
with_items:
5857
- "{{ mongodb_users }}"
59-
when: mongodb_users
58+
when: mongodb_users is defined and mongodb_users
6059

6160
- name: Move back mongod.conf
6261
template: src=mongod.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0644

0 commit comments

Comments
 (0)