deploy_watchman_tx1_master_patch.yml
679 Bytes
---
- hosts: starnet_master
sudo: yes
gather_facts: false
tasks:
- 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: install haproxy
copy: src=/Users/liuhang/code/update_and_install/tool/haproxy_tx1 dest=/root/UserApp/
- raw: cd /root/UserApp/haproxy_tx1; dpkg -i ./*.deb
- raw: cp /root/UserApp/haproxy_tx1/haproxy.cfg /etc/haproxy/haproxy.cfg