Commit 6adc7834 by ansible

no message

1 parent 1b137521
Showing with 6 additions and 25 deletions
...@@ -2,27 +2,8 @@ ...@@ -2,27 +2,8 @@
- hosts: all - hosts: all
become: true become: true
tasks: tasks:
- name: create new user "wdobject" on admin database - name: Case insensitve password string match
- mongodb_user: expect:
login_user: root command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres -f /tmp/configuration/0.\ Create.User.sql
login_password: password responses:
login_port: 7017 (?i)password: "password"
database: admin \ No newline at end of file
user: wdobject
password: BBKaQWZpX43qN2Rn
roles:
- db: admin
role: userAdminAnyDatabase
- name: create new database "WDCHAT" and new user "wdmongo"
- mongodb_user:
login_user: wdobject
login_password: BBKaQWZpX43qN2Rn
login_port: 7017
database: WDCHAT
user: wdmongo
password: BBgYWpbfqkr5ZwTS
roles:
- db: WDCHAT
role: dbAdmin
role: readWrite
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!