deploy_iconsole_script.yml 1.27 KB
---
- hosts: 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: 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: deploy-iConsole-single-host-3.0.6.0
  become: true
  tasks:
    - name: Copy iConsole
      command: cp /tmp/source/iConsole.singlehost.dma.3.0.6.0.zip /opt/stack/iConsole.singlehost.dma.3.0.6.0.zip
    - name: Extract root
      command: tar -zxvf /opt/stack/iConsole.singlehost.dma.3.0.6.0.zip -C /opt/
    - name: Delete File
      command: rm /opt/stack/iConsole.singlehost.dma.3.0.6.0.zip
    - name: Setup Schedule
      command: /opt/Schedule/add_schedule