initial_user_db_wdchat.yml 455 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/configuration/wdchat.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'