15 lines
269 B
YAML
15 lines
269 B
YAML
- name: Install haproxy
|
|
apt:
|
|
name: haproxy
|
|
state: latest
|
|
|
|
- name: Update Haproxy configuration from template
|
|
template:
|
|
src: haproxy.cfg.j2
|
|
dest: /etc/haproxy/haproxy.cfg
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
notify:
|
|
- restart haproxy
|