initial_user_db_wdchat.yml
453 Bytes
- name: Create user & db named WDCHAT on mongodb-7017
command: /opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7017 < /tmp/source/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'