2020-01-17 22:31:50 +00:00
|
|
|
# - name: Install Haproxy
|
|
|
|
# apt:
|
|
|
|
# name: haproxy
|
|
|
|
# become: true
|
|
|
|
# become_user: root
|
2019-12-08 20:16:42 +00:00
|
|
|
|
2020-01-17 22:31:50 +00:00
|
|
|
# - name: Haproxy config
|
|
|
|
# template:
|
|
|
|
# src: files/haproxy.cfg
|
|
|
|
# dest: /etc/haproxy/haproxy.cfg
|
|
|
|
# validate: /usr/sbin/haproxy -c -- %s
|
|
|
|
# backup: yes
|
|
|
|
# become: true
|
|
|
|
# become_user: root
|
|
|
|
# register: haproxy_config
|
2019-12-08 20:16:42 +00:00
|
|
|
|
2020-01-17 22:31:50 +00:00
|
|
|
# - name: Restart Haproxy
|
|
|
|
# service:
|
|
|
|
# name: haproxy
|
|
|
|
# state: reloaded
|
|
|
|
# when: haproxy_config.changed
|