snel.kubernetes-cluster/roles/haproxy_control_lb/tasks/main.yml

15 lines
315 B
YAML

---
- name: Import firewall tasks
ansible.builtin.import_tasks:
file: firewall.yml
tags:
- firewall
- name: Haproxy LB config
ansible.builtin.template:
src: haproxy_control_lb.cfg.j2
dest: /etc/haproxy/haproxy_control_lb.cfg
mode: u=rw,g=r,o=
group: haproxy
notify: Restart haproxy