35 lines
1003 B
YAML
35 lines
1003 B
YAML
---
|
|
- name: Restart postgresql
|
|
ansible.builtin.service:
|
|
name: postgresql
|
|
state: restarted
|
|
when: ansible_distribution_file_variety == "Debian"
|
|
- name: Reload postgresql
|
|
ansible.builtin.service:
|
|
name: postgresql
|
|
state: reloaded
|
|
when: ansible_distribution_file_variety == "Debian"
|
|
- name: Restart postgresql with pgpool config
|
|
ansible.builtin.service:
|
|
name: postgresql
|
|
state: restarted
|
|
when:
|
|
- ansible_distribution_file_variety == "Debian"
|
|
- psql_restart_after_wal_enabling
|
|
- name: Flush the APT cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
- name: Restart postgresql
|
|
ansible.builtin.service:
|
|
name: 'postgresql-{{ psql_version }}'
|
|
state: restarted
|
|
when: ansible_distribution_file_variety == "RedHat"
|
|
- name: Reload postgresql
|
|
ansible.builtin.service:
|
|
name: 'postgresql-{{ psql_version }}'
|
|
state: reloaded
|
|
when: ansible_distribution_file_variety == "RedHat"
|
|
- name: Reload systemd
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|