Ansible-HAProxy-Failover/roles/haproxy/handlers/main.yml

26 lines
402 B
YAML

---
# file: roles/haproxy/handlers/main.yml
- name: Daemon Reload
systemd:
daemon_reload: yes
- name: reload haproxy
service:
name: haproxy
state: reloaded
- name: reload keepalived
service:
name: keepalived
state: reloaded
- name: reload firewalld
service:
name: firewalld
state: reloaded
- name: Restart SSH
service:
name: sshd
state: restarted