Skip to content

Commit

Permalink
Fixed problem with mongodb_users param
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Antipov committed Nov 16, 2015
1 parent 58ccde4 commit 94ebb6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tasks/auth_initialization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@
name: "{{ item.name }}"
password: "{{ item.password }}"
roles: "{{ item.roles }}"
replica_set: "{{ mongodb_conf_replSet }}"
login_user: "{{ mongodb_user_admin_name }}"
login_password: "{{ mongodb_user_admin_password }}"
login_port: "{{ mongodb_conf_port }}"
with_items:
- "{{ mongodb_users }}"
when: mongodb_users
when: mongodb_users is defined and mongodb_users

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

0 comments on commit 94ebb6e

Please sign in to comment.