Commit efeb13be by ansible

no message

1 parent d7cfcd03
---
- hosts: 06_deploy-defalut-ntp
become: true
tasks:
- name: Deploy NTP Configuration
command: cp /tmp/configuration/ntp.conf /etc/ntp.conf
- name: Restart NTP service
command: systemctl restart ntp.service
\ No newline at end of file
---
- hosts: 06_deploy-defalut-certificate
become: true
tasks:
- name: Deploy Server Certificate File
command: cp /tmp/configuration/beebuddy.ssl/server.crt /opt/stack/nginx/conf/ssl/server.crt
- name: Deploy Server Key File
command: cp /tmp/configuration/beebuddy.ssl/server.key /opt/stack/nginx/conf/ssl/server.key
\ No newline at end of file
---
- hosts: 07_patch-dma-3.0.3
become: true
tasks:
- name: Deploy ims-1.0.0
command: cp /tmp/application/ims-1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb.war
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- hosts: 07_patch-dma-3.0.5
become: true
tasks:
- name: Deploy iChat-3.0.5
command: cp /tmp/application/iChat-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iChat.war
- name: Deploy serviceGateway-3.1.3
command: cp /tmp/application/serviceGateway-3.1.3.war /opt/stack/runtime/wildfly/standalone/deployments/serviceGateway.war
- name: Deploy dmaManager-3.0.5
command: cp /tmp/application/dmaManager-3.0.5.war /opt/stack/runtime/wildfly/standalone/deployments/dmaManager.war
- name: Deploy dmaEngine-3.0.5
command: cp /tmp/application/dmaEngine-3.0.5.war /opt/stack/runtime/wildfly/standalone/deployments/dmaEngine.war
- name: Deploy ims-1.0.0
command: cp /tmp/application/ims-1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- name: Deploy iConsole-3.0.6.0
command: cp /tmp/application/iConsole-3.0.6.0.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- hosts: 07_patch-dma-3.0.6
become: true
tasks:
- name: Deploy iChat-3.0.5
command: cp /tmp/application/iChat-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iChat.war
- name: Deploy serviceGateway-3.1.3
command: cp /tmp/application/serviceGateway-3.1.3.war /opt/stack/runtime/wildfly/standalone/deployments/serviceGateway.war
- name: Deploy dmaManager-3.0.6.0
command: cp /tmp/application/dmaManager-3.0.6.0.war /opt/stack/runtime/wildfly/standalone/deployments/dmaManager.war
- name: Deploy dmaEngine-3.0.5
command: cp /tmp/application/dmaEngine-3.0.5.war /opt/stack/runtime/wildfly/standalone/deployments/dmaEngine.war
- name: Deploy ims-1.0.0
command: cp /tmp/application/ims-1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- name: Deploy iConsole-3.0.6.0
command: cp /tmp/application/iConsole-3.0.6.0.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- hosts: 07_patch-dma-3.1.0
become: true
tasks:
- name: Deploy iChat-3.0.5
command: cp /tmp/application/iChat-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iChat.war
- name: Deploy serviceGateway-3.1.3
command: cp /tmp/application/serviceGateway-3.1.3.war /opt/stack/runtime/wildfly/standalone/deployments/serviceGateway.war
- name: Deploy dmaManager-3.1.0.0
command: cp /tmp/application/dmaManager-3.1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/dmaManager.war
- name: Deploy dmaEngine-3.0.5
command: cp /tmp/application/dmaEngine-3.0.5.war /opt/stack/runtime/wildfly/standalone/deployments/dmaEngine.war
- name: Deploy ims-1.0.0
command: cp /tmp/application/ims-1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- name: Deploy iConsole-3.0.6.0
command: cp /tmp/application/iConsole-3.0.6.0.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- hosts: 07_patch-dma-3.1.2
become: true
tasks:
- name: Deploy iChat-3.0.5
command: cp /tmp/application/iChat-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iChat.war
- name: Deploy serviceGateway-3.1.6.0
command: cp /tmp/application/serviceGateway-3.1.6.0.war /opt/stack/runtime/wildfly/standalone/deployments/serviceGateway.war
- name: Deploy dmaManager-3.0.6.0
command: cp /tmp/application/dmaManager-3.1.2.0.war /opt/stack/runtime/wildfly/standalone/deployments/dmaManager.war
- name: Deploy dmaEngine-3.0.5
command: cp /tmp/application/dmaEngine-3.0.5.war /opt/stack/runtime/wildfly/standalone/deployments/dmaEngine.war
- name: Deploy ims-1.0.0
command: cp /tmp/application/ims-1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- name: Deploy iConsole-3.0.6.0
command: cp /tmp/application/iConsole-3.0.6.0.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- hosts: 07_patch-dma-3.1.4
become: true
tasks:
- name: Deploy iChat-3.0.5
command: cp /tmp/application/iChat-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iChat.war
- name: Deploy serviceGateway-3.1.7.0
command: cp /tmp/application/serviceGateway-3.1.7.0.war /opt/stack/runtime/wildfly/standalone/deployments/serviceGateway.war
- name: Deploy dmaManager-3.1.4.0
command: cp /tmp/application/dmaManager-3.1.4.0.war /opt/stack/runtime/wildfly/standalone/deployments/dmaManager.war
- name: Deploy dmaEngine-3.0.5
command: cp /tmp/application/dmaEngine-3.0.5.war /opt/stack/runtime/wildfly/standalone/deployments/dmaEngine.war
- name: Deploy ims-1.0.0
command: cp /tmp/application/ims-1.0.0.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- name: Deploy iConsole-3.0.6.0
command: cp /tmp/application/iConsole-3.0.6.0.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
- hosts: 07_patch-dma-3.1.8
become: true
tasks:
- name: Deploy iChat-1.1.3
command: cp /tmp/application/iChat-1.1.3.war /opt/stack/runtime/wildfly/standalone/deployments/iChat.war
- name: Deploy serviceGateway-3.1.8.4
command: cp /tmp/application/serviceGateway-3.1.8.4.war /opt/stack/runtime/wildfly/standalone/deployments/serviceGateway.war
- name: Deploy dmaManager-3.1.8
command: cp /tmp/application/dmaManager-3.1.8.0.war /opt/stack/runtime/wildfly/standalone/deployments/dmaManager.war
- name: Deploy dmaEngine-3.0.7
command: cp /tmp/application/dmaEngine-3.0.7.war /opt/stack/runtime/wildfly/standalone/deployments/dmaEngine.war
- name: Deploy ims-1.0.6
command: cp /tmp/application/ims-1.0.6.war /opt/stack/runtime/wildfly/standalone/deployments/ims.war
- name: Deploy jsb
command: cp /tmp/application/jsb.war /opt/stack/admin/wildfly/standalone/deployments/jsb.war
- name: Deploy iConsole-3.0.6.0
command: cp /tmp/application/iConsole-3.0.6.0.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
\ No newline at end of file
---
- hosts: 06_deployed-iConsole-two-host
become: true
tasks:
- name: Copy iConsole
command: cp /tmp/source/iConsole.tar.gz /opt/stack/iConsole.tar.gz
- name: Extract root
command: tar -zxvf /opt/stack/iConsole.tar.gz -C /opt/
- name: Delete File
command: rm /opt/stack/iConsole.tar.gz
- name: Setup Schedule
command: /opt/Schedule/add_schedule
- hosts: 06_deploy-iConsole-single-host
become: true
tasks:
- name: Copy iConsole
command: cp /tmp/source/iConsole.singlehost.dma.tar.gz /opt/stack/iConsole.singlehost.dma.tar.gz
- name: Extract root
command: tar -zxvf /opt/stack/iConsole.singlehost.dma.tar.gz -C /opt/
- name: Delete File
command: rm /opt/stack/iConsole.singlehost.dma.tar.gz
- name: Setup Schedule
command: /opt/Schedule/add_schedule
- hosts: 06_deploy-iConsole-single-host-3.0.6.0
become: true
tasks:
- name: Unarchive a file that is already on the remote machine
unarchive:
src: /tmp/source/iConsole.singlehost.dma.3.0.6.0.zip
dest: /opt
remote_src: yes
group: wdadmin
owner: wdadmin
mode: 0755
- file:
path: '/opt/{{ item.dir }}'
group: wdadmin
owner: wdadmin
mode: 0755
state: directory
recurse: yes
with_items:
- { dir: 'Accessor' }
- { dir: 'iConsole' }
- { dir: 'json' }
- { dir: 'Schedule' }
- name: Setup Schedule
command: /opt/Schedule/add_schedule
\ No newline at end of file
---
- hosts: 06_deploy-wdchat-postgresql-302
become: true
tasks:
- name: Create Database WDCHAT & WDAUTHEN & 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
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 Table
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
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'
- hosts: 06_deploy-dma-postgresql-302, 06_deploy-dma-postgresql-312
become: true
tasks:
- name: Create Database WDCHAT
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: Create DMA Table
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
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
---
- 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
---
- hosts: 06_deploy-dma-mongo-newdatabase-newuser-302
become: true
tasks:
- name: Create User & Database for WDCHAT 7017
command: /tmp/source/mongo_7017.sh
- name: Create User & Database for DMAMANAGER 7018
command: /tmp/source/mongo_7018.sh
- name: Create User & Database for SERVICEGATEWAY 7019
command: /tmp/source/mongo_7019.sh
- name: Create User & Database for DMAENGINE 7020
command: /tmp/source/mongo_7020.sh
- hosts: 06_deploy-dma-mongo-newdatabase-newuser-306
become: true
tasks:
- name: Create User & Database for WDCHAT 7017
command: /tmp/source/mongo_7017.sh
- name: Create User & Database for DMAMANAGER 7018
command: /tmp/source/mongo_7018.sh
- name: Create User & Database for SERVICEGATEWAY 7019
command: /tmp/source/mongo_7019.sh
- hosts: 06_deploy-wdchat-mongo-newdatabase-newuser-302
become: true
tasks:
- name: Create User & Database for WDCHAT 7017
command: /tmp/source/mongo_7017.sh
\ No newline at end of file
---
- hosts: 06_deploy-security-file
become: true
tasks:
- name: Copy root
command: cp /tmp/source/root.tar.gz /root/root.tar.gz
- name: Extract root
command: tar -zxvf /root/root.tar.gz -C /root/
- name: Delete File
command: rm /root/root.tar.gz
- name: Gen License Request File
command: /root/bin/gen_license_request.py
args:
chdir: /root/bin
- name: Gen License File
command: /root/bin/gen_license.py /root/bin/request_license.txt /root/bin/license
- name: Activate License
command: cp /root/bin/license.enc /opt/iConsole/security/wdchat.license
- name: Delete request_license.txt File
command: rm /root/bin/request_license.txt
- name: Delete license.enc File
command: rm /root/bin/license.enc
---
- hosts: 06_deploy-dma-singlehost-script
become: true
tasks:
- name: Copy Script
command: cp /tmp/source/script.singlehost.tar.gz /opt/stack/script.singlehost.tar.gz
- name: Extract Script
command: tar -zxvf /opt/stack/script.singlehost.tar.gz -C /opt/stack/
- name: Delete File
command: rm /opt/stack/script.singlehost.tar.gz
- hosts: 06_deploy-dma-singlehost-script-3.1.4
become: true
tasks:
- name: Unarchive a file that is already on the remote machine
unarchive:
src: /tmp/source/stackscript.singlehost.zip
dest: /opt/stack
remote_src: yes
group: wdadmin
owner: wdadmin
mode: 0711
- file:
path: '/opt/stack/{{ item.dir }}'
group: wdadmin
owner: wdadmin
mode: 0755
state: directory
recurse: yes
with_items:
- { dir: 'script' }
---
- hosts: 06_deploy-dma-as-service
become: true
tasks:
- name: Add Engine Service
command: /opt/stack/script/add_service.sh /opt/stack/script/engine.service
- name: Add Tcp Service
command: /opt/stack/script/add_service.sh /opt/stack/script/nginx.tcp.service
\ No newline at end of file
---
- hosts: 06_patch-wdchat-302
become: true
tasks:
- name: Deploy iChat-1.1.1.war
command: cp /tmp/application/iChat-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iChat-1.1.1.war
- name: Deploy ExAuthenWS.war
command: cp /tmp/application/ExAuthenWS.war /opt/stack/runtime/wildfly/standalone/deployments/ExAuthenWS.war
- name: Deploy iAuthen-1.1.1.war
command: cp /tmp/application/iAuthen-1.1.1.war /opt/stack/runtime/wildfly/standalone/deployments/iAuthen-1.1.1.war
- name: Deploy iChatGateway.war
command: cp /tmp/application/iChatGateway.war /opt/stack/runtime/wildfly/standalone/deployments/iChatGateway.war
- name: Deploy iChatManagement-1.1.1.war
command: cp /tmp/application/iChatManagement-1.1.1.war /opt/stack/admin/wildfly/standalone/deployments/iChatManagement-1.1.1.war
- name: Deploy iConsole.war
command: cp /tmp/application/iConsole.war /opt/stack/admin/wildfly/standalone/deployments/iConsole.war
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!