deploy_watchman_tx1.yml 1.33 KB
---
- hosts: sndev
  sudo: yes
  tasks: 
    - name: copy filebeat to remote
      copy: src=/Users/liuhang/code/update_and_install/tool/elk_tx1/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_tx1 dest=/root/UserApp/
    - name: install zabbix
      command: chmod +x install.sh
      args:
        chdir: /root/UserApp/zabbix_agent_proxy_tx1/
      command: bash install.sh
      args:
        chdir: /root/UserApp/zabbix_agent_proxy_tx1/
    - name: copy ansible to remote
      copy: src=/Users/liuhang/code/update_and_install/tool/ansible_offline_tx1 dest=/root/UserApp/
    - name: install ansible
      command: chmod +x install.sh
      args:
        chdir: /root/UserApp/ansible_offline_tx1/
      command: bash install.sh
      args:
        chdir: /root/UserApp/ansible_offline_tx1/
    - name: copy supervisor to remote
      copy: src=/Users/liuhang/code/update_and_install/tool/supervisor_offline_tx1 dest=/root/UserApp/
    - name: install supervisor
      command: chmod +x install.sh
      args:
        chdir: /root/UserApp/supervisor_offline_tx1/
      command: bash install.sh
      args:
        chdir: /root/UserApp/supervisor_offline_tx1/