deploy_watchman_tk1.yml 1.01 KB
---
- hosts: tk1_sn
  sudo: yes
  gather_facts: false
  tasks: 
    - name: copy filebeat to remote
      copy: src=/Users/liuhang/code/update_and_install/tool/elk_tk1/filebeat_app dest=/root/UserApp/
    - name: install filebeat
      command: chmod +x filebeat
      args:
        chdir: /root/UserApp/filebeat_app/
    - name: copy zabbix
      copy: src=/Users/liuhang/code/update_and_install/tool/zabbix_agent_proxy_tk1 dest=/root/UserApp/
    - name: install zabbix
      command: chmod +x install.sh
      args:
        chdir: /root/UserApp/zabbix_agent_proxy_tk1/
      command: bash install.sh
      args:
        chdir: /root/UserApp/zabbix_agent_proxy_tk1/
    - name: copy supervisor to remote
      copy: src=/Users/liuhang/code/update_and_install/tool/supervisor_offline_tk1 dest=/root/UserApp/
    - name: install supervisor
      command: chmod +x install.sh
      args:
        chdir: /root/UserApp/supervisor_offline_tk1/
      command: bash install.sh
      args:
        chdir: /root/UserApp/supervisor_offline_tk1/