install_webgate.yml 896 Bytes
---
- hosts: install-wdchat-dma-twohost
  become: true
  tasks:
    - name: Extract File
      command: tar -zxvf /tmp/source/webgate.3.0.4.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

- hosts: install-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