Commit 7ab547a6 by ansible

no message

1 parent a7c1d12e
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove Admin Wildfly if exist - name: Remove Admin Wildfly if exist
file: file:
state: absent state: absent
......
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove dmamanager DB if exist - name: Remove dmamanager DB if exist
file: file:
state: absent state: absent
......
- name: Find & Kill All Process that listen port
shell: lsof -n -i4TCP:[PORT] | grep LISTEN | awk '{ print $2 }' | xargs kill
- name: Check & Recreate Stack Folder - name: Check & Recreate Stack Folder
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
...@@ -8,10 +10,6 @@ ...@@ -8,10 +10,6 @@
- { owner: root, path: /opt/stack/dma/conf } - { owner: root, path: /opt/stack/dma/conf }
- { owner: root, path: /home/chroot/wdftp } - { owner: root, path: /home/chroot/wdftp }
# First piority becuase it provide script to manage all service. DON'T CHANGE
- import_tasks: system-management.yml
when: app_name == 'dma' or app_name == 'wdchat'
- name: Install software stack based on Application Name - name: Install software stack based on Application Name
import_tasks: nginx.yml import_tasks: nginx.yml
when: app_name == 'dma' or app_name == 'wdchat' when: app_name == 'dma' or app_name == 'wdchat'
...@@ -36,4 +34,6 @@ ...@@ -36,4 +34,6 @@
- import_tasks: servicegateway.yml - import_tasks: servicegateway.yml
when: app_name == 'dma' when: app_name == 'dma'
\ No newline at end of file - import_tasks: system-management.yml
when: app_name == 'dma' or app_name == 'wdchat'
\ No newline at end of file
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove MQTT if exist - name: Remove MQTT if exist
file: file:
state: absent state: absent
......
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove Nginx if exist - name: Remove Nginx if exist
file: file:
state: absent state: absent
......
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove Runtime Wildfly if exist - name: Remove Runtime Wildfly if exist
file: file:
state: absent state: absent
......
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove servicegateway DB if exist - name: Remove servicegateway DB if exist
file: file:
state: absent state: absent
......
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove wdchat-mongo DB if exist - name: Remove wdchat-mongo DB if exist
file: file:
state: absent state: absent
......
- name: Stop All Service
shell: /opt/stack/script/ctlscript.sh stop
- name: Remove wdchat-postgres DB if exist - name: Remove wdchat-postgres DB if exist
file: file:
state: absent state: absent
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!