Fixed problem with mongodb_users param

This commit is contained in:
Sergei Antipov 2015-11-16 16:46:18 +06:00
parent f060702b6b
commit 2ef7e5bc77
1 changed files with 1 additions and 2 deletions

View File

@ -50,13 +50,12 @@
name: "{{ item.name }}" name: "{{ item.name }}"
password: "{{ item.password }}" password: "{{ item.password }}"
roles: "{{ item.roles }}" roles: "{{ item.roles }}"
replica_set: "{{ mongodb_conf_replSet }}"
login_user: "{{ mongodb_user_admin_name }}" login_user: "{{ mongodb_user_admin_name }}"
login_password: "{{ mongodb_user_admin_password }}" login_password: "{{ mongodb_user_admin_password }}"
login_port: "{{ mongodb_conf_port }}" login_port: "{{ mongodb_conf_port }}"
with_items: with_items:
- "{{ mongodb_users }}" - "{{ mongodb_users }}"
when: mongodb_users when: mongodb_users is defined and mongodb_users
- name: Move back mongod.conf - name: Move back mongod.conf
template: src=mongod.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0644 template: src=mongod.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0644