homeserver-iac/roles/haproxy/tasks/main.yml
2023-08-23 18:22:50 -04:00

18 lines
290 B
YAML

---
- name: Install haproxy package
community.general.pacman:
name:
- haproxy
- name: Deploy haproxy config
template:
src: haproxy.cfg.j2
dest: /etc/haproxy/haproxy.cfg
- name: Enable haproxy service
systemd:
name: haproxy
enabled: yes
state: started