mqtt.yml 568 Bytes
- name: Stop All Service
  shell: /opt/stack/script/ctlscript.sh stop
- name: Remove MQTT if exist
  file:
    state: absent
    path: /opt/stack/mqtt
- name: Install MQTT to Working Folder
  unarchive:
        src: /tmp/source/message.3.0.2.tar.gz
        dest: /opt/stack
        remote_src: yes
        group: wdadmin
        owner: wdadmin
        mode: 0755
- file:
        path: '/opt/stack/{{ item.dir }}' 
        group: wdadmin
        owner: wdadmin
        mode: 0755
        state: directory
        recurse: yes
  with_items:
            - { dir: 'mqtt' }