patroni/handlers/main.yaml

9 lines
236 B
YAML
Raw Normal View History

2023-02-07 23:39:20 +00:00
- block:
- name: Restart Patroni
throttle: 1
ansible.builtin.systemd:
state: reloaded
daemon_reload: yes
name: patroni
when: "not patroni_postgresql_setup.changed or not patroni_enable_and_start.changed"