mongodb_user.present: | mongodb_user.present: | ||||
- name: {{ database_name }} | - name: {{ database_name }} | ||||
- passwd: {{ database.password }} | - passwd: {{ database.password }} | ||||
- user: admin | |||||
- password: {{ server.admin.password }} | |||||
{%- if server.members is defined %} | {%- if server.members is defined %} | ||||
require: | require: | ||||
- cmd: mongodb_setup_cluster | - cmd: mongodb_setup_cluster |