Commit b8f473dc by ansible

Edit to support single-host architect

1 parent fc0d2eb2
Showing with 22 additions and 8 deletions
--- ---
- hosts: install-wdchat-dma - hosts: deployed-wdchat-dma
become: true become: true
tasks: tasks:
- name: Move WebGate to Working Folder - name: Extract File
command: cp /tmp/source/webgate.3.0.4.tar.gz /opt/stack/webgate.3.0.4.tar.gz command: tar -zxvf /tmp/source/webgate.3.0.4.tar.gz -C /tmp/source/
- name: Extract WebGate - name: Backup current configuration
command: tar -zxvf /opt/stack/webgate.3.0.4.tar.gz -C /opt/stack/ command: mv /opt/stack/nginx/conf /opt/stack/nginx/bkconf
- name: Delete File - name: Deploy new configuration
command: rm /opt/stack/webgate.3.0.4.tar.gz command: mv /tmp/source/conf /opt/stack/nginx/.
\ No newline at end of file - name: Delete backup configuration
command: rm -r /opt/stack/nginx/bkconf
- hosts: deploy-wdchat-dma-single-host
become: true
tasks:
- name: Extract File
command: tar -zxvf /tmp/source/webgate.singlehost.conf.tar.gz -C /tmp/source/
- name: Backup current configuration
command: mv /opt/stack/nginx/conf /opt/stack/nginx/bkconf
- name: Deploy new configuration
command: mv /tmp/source/conf /opt/stack/nginx/.
- name: Delete backup configuration
command: rm -r /opt/stack/nginx/bkconf
\ 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!