Files
cms/roles/configure_haproxy/tasks/main.yml
ytshih bf6ac11888
All checks were successful
Ansible Playbook lint / ansible-lint (push) Successful in 35s
Initial commit
2024-12-19 10:25:37 +08:00

15 lines
320 B
YAML

---
- 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