initial_user_db_dma.yml 783 Bytes
- name: Create user & db named WDCHAT on mongodb-7017
  shell: /opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017 < /tmp/source/wdchat.js
  
- name: Create user & db named DMAMANAGER on mongodb1-7018
  command: /opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018 /tmp/source/dmamanager.js
- name: Create user & db named SERVICEGATEWAY on mongodb2-7019
  command: /opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7019 /tmp/source/servicegateway.js
- name: Create user & db named WDCHAT and WDAUTHEN on postgres-7432
  expect:
        command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=postgres -f /tmp/configuration/0_Create.User.sql
        responses:
            'Password for user postgres': 'password'