reload before restart

This commit is contained in:
ace
2023-08-11 00:53:13 +03:00
parent 5180e29e2f
commit d6055efe29
4 changed files with 40 additions and 17 deletions

View File

@ -1,10 +1,19 @@
- block:
- 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
- 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