postgresql/handlers/main.yaml
2023-08-11 00:53:13 +03:00

20 lines
479 B
YAML

- name: Reload PostgreSQL
throttle: 1
ansible.builtin.systemd:
name: "{{ postgresql_unit_name }}"
state: reloaded
daemon_reload: yes
when:
- not postgresql_setup.changed
- not postgresql_enable_and_start.changed
- name: Restart PostgreSQL
throttle: 1
ansible.builtin.systemd:
name: "{{ postgresql_unit_name }}"
state: restarted
daemon_reload: yes
when:
- not postgresql_setup.changed
- not postgresql_enable_and_start.changed