Files
ansible/roles/haproxy/tasks/main.yml
2024-07-05 11:53:53 +02:00

15 lines
271 B
YAML

---
- name: Install haproxy package
ansible.builtin.package:
name: haproxy
state: present
- name: Put haproxy config file
ansible.builtin.template:
src: haproxy.cfg.j2
dest: /etc/haproxy/haproxy.cfg
mode: "0o644"
notify:
- Restart haproxy