Initial commit
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s

This commit is contained in:
2024-12-19 10:25:37 +08:00
commit bf6ac11888
28 changed files with 742 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
---
- name: Copy haproxy.cfg
ansible.builtin.copy:
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