2024-01-29 17:53:50 +00:00
|
|
|
---
|
|
|
|
# handlers file for deploy_haproxy
|
2024-01-31 20:01:49 +00:00
|
|
|
- name: "Reload systemd file"
|
|
|
|
ansible.builtin.systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
listen: "systemctl-daemon-reload"
|
|
|
|
|
|
|
|
- name: "Enable haproxy service"
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: "{{ deploy_haproxy_service_name }}"
|
|
|
|
enabled: true
|
|
|
|
listen: "systemctl-enable-haproxy"
|
|
|
|
|
|
|
|
- name: "Start haproxy service"
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: "{{ deploy_haproxy_service_name }}"
|
|
|
|
state: restarted
|
|
|
|
listen: "systemctl-restart-haproxy"
|
|
|
|
throttle: 1
|
2024-02-01 22:05:41 +00:00
|
|
|
when: deploy_haproxy_start_service
|