Commit 533a5c6b by ansible

no message

1 parent 67e08bf5
Showing with 7 additions and 8 deletions
......@@ -2,10 +2,9 @@
- hosts: wdchat-dma
become: true
tasks:
- name: Create Database WDCHAT & WDAUTHEN & USER
expect:
command: /opt/stack/mongodb/mongodb/bin/mongo --host 127.0.0.1 --port 7018
responses:
'>': 'use admin'
'switched to db admin': 'db.auth("root", "password")'
'1': 'db.createUser({user: "test",pwd: "test",roles: [ { role: "userAdminAnyDatabase", db: "admin" }]})'
\ No newline at end of file
- name: Move DMA-Mongo to Working Folder
command: cp /tmp/source/dma-mongo.tar.gz /opt/stack/dma-mongo.tar.gz
- name: Extract DMA-MongoDB
command: tar -zxvf /opt/stack/dma-mongo.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/dma-mongo.tar.gz
\ 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!