deploy_watchman_tx1.yml
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- 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/