Commit 62f921f0 by ansible

no message

1 parent b9051ec8
Showing with 28 additions and 0 deletions
---
- hosts: all
become: true
tasks:
- name: Add new administrator user in admin database
mongodb_user:
login_user: "{{ root }}"
login_password: "{{ password }}"
login_port: "7017"
database: "admin"
name: "{{ wdobject }}"
password: "{{ BBKaQWZpX43qN2Rn }}"
roles:
- { role: "userAdminAnyDatabase", db: "admin" }
- name: Create MongoDB WDCHAT and User
mongodb_user:
login_user: "{{ wdobject }}"
login_password: "{{ BBKaQWZpX43qN2Rn }}"
login_port: "7017"
database: "WDCHAT"
name: "{{ wdmongo }}"
password: "{{ BBgYWpbfqkr5ZwTS }}"
roles:
- { role: "dbAdmin", db: "WDCHAT" }
- { role: "readWrite", db : "WDCHAT" }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!