Files
ytshih c014a0b76e
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 14s
Fix: aws
2024-12-20 22:34:05 +08:00

15 lines
324 B
YAML

---
- name: Copy haproxy.cfg
ansible.builtin.template:
src: haproxy.cfg.jinja
dest: /etc/haproxy/haproxy.cfg
mode: '0600'
owner: root
group: root
notify: Reload haproxy
- name: Enable and start haproxy
ansible.builtin.systemd_service:
name: haproxy.service
state: started
enabled: true