postgresql/handlers/main.yaml

20 lines
479 B
YAML
Raw Normal View History

2023-08-10 21:53:13 +00:00
- 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