Commit f088c7a7 by ansible

no message

1 parent 31c3932d
---
- hosts: NewServer
become: true
tasks:
- import_role:
name: deploy
\ No newline at end of file
---
- hosts: NewServer
become: true
tasks:
- import_role:
name: initial
\ No newline at end of file
---
- hosts: 05_install-wildfly-admin
become: true
tasks:
- name: Install Admin Wildfly
command: /tmp/source/bitnami-wildfly-10.1.0-1-linux-x64-installer.run --optionfile /tmp/configuration/admin.conf --mode unattended
- name: Stop All Wildfly Stack
command: /opt/stack/admin/ctlscript.sh stop
- name: Start Only Wildfly Service
command: /opt/stack/admin/ctlscript.sh start wildfly
\ No newline at end of file
---
- hosts: 05_install-wdchat
become: true
tasks:
- name: Install WDCHAT DB
command: /tmp/source/bitnami-mongodb-3.4.4-0-linux-x64-installer.run --optionfile /tmp/configuration/wdchat-mongo.conf --mode unattended
- hosts: 05_install-dmamanager
become: true
tasks:
- name: Install DMA Manager DB
command: /tmp/source/bitnami-mongodb-3.4.4-0-linux-x64-installer.run --optionfile /tmp/configuration/dmamanager.conf --mode unattended
- hosts: 05_install-servicegateway
become: true
tasks:
- name: Install DMA Manager DB
command: /tmp/source/bitnami-mongodb-3.4.4-0-linux-x64-installer.run --optionfile /tmp/configuration/servicegateway.conf --mode unattended
- hosts: 05_install-dmaengine
become: true
tasks:
- name: Install DMAENGINE DB
command: /tmp/source/bitnami-mongodb-3.4.4-0-linux-x64-installer.run --optionfile /tmp/configuration/dmaengine.conf --mode unattended
\ No newline at end of file
---
- hosts: 05_install-mqtt
become: true
tasks:
- name: Move MQTT to Working Folder
command: cp /tmp/source/message.3.0.2.tar.gz /opt/stack/message.3.0.2.tar.gz
- name: Extract MQTT
command: tar -zxvf /opt/stack/message.3.0.2.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/message.3.0.2.tar.gz
\ No newline at end of file
---
- hosts: 05_install-wdchatDB-postgresql
become: true
tasks:
- name: Install postgres software
command: /tmp/source/bitnami-postgresql-9.6.2-0-linux-x64-installer.run --optionfile /tmp/configuration/wdchat-postgres.conf --mode unattended
\ No newline at end of file
---
- hosts: 05_install-wildfly-runtime
become: true
tasks:
- name: Install Runtime Wildfly
command: /tmp/source/bitnami-wildfly-10.1.0-1-linux-x64-installer.run --optionfile /tmp/configuration/runtime.conf --mode unattended
- name: Stop All Wildfly Stack
command: /opt/stack/runtime/ctlscript.sh stop
- name: Start Only Wildfly Service
command: /opt/stack/runtime/ctlscript.sh start wildfly
\ No newline at end of file
---
- hosts: 05_install-webgate-wdchat-dma-twohost
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.3.0.4.tar.gz /opt/stack/webgate.3.0.4.tar.gz
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.3.0.4.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.3.0.4.tar.gz
- hosts: 05_install-webgate-wdchat-dma
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.singlehost.dma.plus.wdchat.conf.tar.gz /opt/stack/webgate.singlehost.dma.plus.wdchat.conf.tar.gz
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.singlehost.dma.plus.wdchat.conf.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.singlehost.dma.plus.wdchat.conf.tar.gz
- hosts: 05_install-webgate-dma
become: true
tasks:
- name: Move NginX to Working Folder
command: cp /tmp/source/webgate.singlehost.dma.conf.tar.gz /opt/stack/webgate.singlehost.dma.conf.tar.gz
- name: Extract NginX
command: tar -zxvf /opt/stack/webgate.singlehost.dma.conf.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/webgate.singlehost.dma.conf.tar.gz
- hosts: 05_install-webgate-dma-3.1.0
become: true
tasks:
- name: Unarchive a file that is already on the remote machine
unarchive:
src: /tmp/source/webgate.3.1.0.zip
dest: /opt/stack
remote_src: yes
group: nginx
owner: nginx
mode: 0755
- file:
path: '/opt/{{ item.dir }}'
group: nginx
owner: nginx
mode: 0755
state: directory
recurse: yes
with_items:
- { dir: 'nginx' }
\ No newline at end of file
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes
- name: Install required packages
apt: name={{ item }} state=present
with_items:
- sysstat
- gnuplot
- bc
- ntp
- jq
- parted
- python3-pip
- python-dev
- build-essential
- plymouth
- plymouth-theme-edubuntu
- pip: name={{ item }} state=present
with_items:
- virtualenv
- pexpect
- pymongo
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes
- name: Install required packages
apt: name={{ item }} state=present
with_items:
- sysstat
- gnuplot
- bc
- ntp
- jq
- parted
- python3-pip
- python-dev
- build-essential
- plymouth
- plymouth-theme-edubuntu
- pip: name={{ item }} state=present
with_items:
- virtualenv
- pexpect
- pymongo
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes
- name: Install required packages
apt: name={{ item }} state=present
with_items:
- sysstat
- gnuplot
- bc
- ntp
- jq
- parted
- python3-pip
- python-dev
- build-essential
- plymouth
- plymouth-theme-edubuntu
- pip: name={{ item }} state=present
with_items:
- virtualenv
- pexpect
- pymongo
---
- hosts: 06_deploy-dma-mongo-302
become: true
tasks:
- name: Insert Initial Data for DMAMANAGER 7018
command: /tmp/configuration/update_dmamanager.sh
- name: Insert Initial Data for SERVICEGATEWAY 7019
command: /tmp/configuration/update_servicegateway.sh
- hosts: 06_deploy-dma-mongo-305
become: true
tasks:
- name: Insert Initial Data for DMAMANAGER 7018
command: /tmp/configuration/update_dmamanager_305.sh
- name: Insert Initial Data for SERVICEGATEWAY 7019
command: /tmp/configuration/update_servicegateway_313.sh
- hosts: 06_deploy-dma-mongo-306
become: true
tasks:
- name: Insert Initial Data for DMAMANAGER 7018
command: /tmp/configuration/update_dmamanager_306.sh
- name: Insert Initial Data for SERVICEGATEWAY 7019
command: /tmp/configuration/update_servicegateway_313.sh
- hosts: 06_deploy-dma-mongo-314
become: true
tasks:
- name: Insert Initial Data for DMAMANAGER 7018
command: /tmp/configuration/update_dmamanager_314.sh
- name: Insert Initial Data for SERVICEGATEWAY 7019
command: /tmp/configuration/update_servicegateway_313.sh
- name: Create Database WDCHAT DB & USER
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'
- name: Create Tables in WDCHAT DB
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/1_Create.WDCHAT.Table.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Create DMA Tables in WDCHAT DB
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/Create.DMA.Table.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Initial WDCHAT DB
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/2_Initial.WDCHAT.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
\ No newline at end of file
- name: Create WDCHAT DB, WDAUTHEN DB and USER
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'
- name: Create WDCHAT Table
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/1_Create.WDCHAT.Table.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Initial WDCHAT DB
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdchat -d WDCHAT -f /tmp/configuration/2_Initial.WDCHAT.sql
responses:
'Password for user wdchat': 'BBRyAPNh6g4H9qte'
- name: Create WDAUTHEN Tables
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdauthen -d WDAUTHEN -f /tmp/configuration/3_Create.WDAUTHEN.Table.sql
responses:
'Password for user wdauthen': 'BBEcLWu5Cdzy3aeH'
- name: Initial WDAUTHEN DB
expect:
command: /opt/stack/postgres/postgresql/bin/psql --host=127.0.0.1 --port=7432 --username=wdauthen -d WDAUTHEN -f /tmp/configuration/4_Initial.WDAUTHEN.sql
responses:
'Password for user wdauthen': 'BBEcLWu5Cdzy3aeH'
\ No newline at end of file
- 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 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'
\ No newline at end of file
- 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'
\ No newline at end of file
- name: Initial Application based on Application Name
import_tasks: initial_user_db_wdchat
when: app_name == 'wdchat'
#- import_tasks: initial_data_wdchat
# when: app_name == 'wdchat'
- import_tasks: initial_user_db_dma
when: app_name == 'dma'
#- import_tasks: initial_data_dma
# when: app_name == 'dma'
\ 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!