homeserver-iac/roles/haproxy/tasks/main.yml

19 lines
314 B
YAML
Raw Normal View History

2023-08-23 18:22:50 -04:00
---
- name: Install haproxy package
community.general.pacman:
name:
- haproxy
- name: Deploy haproxy config
template:
src: haproxy.cfg.j2
dest: /etc/haproxy/haproxy.cfg
2023-09-03 20:09:56 -04:00
lstrip_blocks: true
2023-08-23 18:22:50 -04:00
- name: Enable haproxy service
systemd:
name: haproxy
enabled: yes
state: started