ansible-role-postgresql/handlers/main.yml

47 lines
1.5 KiB
YAML
Raw Normal View History

2020-06-03 19:19:32 +02:00
---
2020-06-03 19:53:13 +02:00
- name: Restart postgresql
service: name=postgresql state=restarted
2020-07-30 14:14:39 +02:00
when: ansible_distribution_file_variety == "Debian"
2020-06-03 19:53:13 +02:00
- name: Reload postgresql
service: name=postgresql state=reloaded
2020-07-30 14:14:39 +02:00
when: ansible_distribution_file_variety == "Debian"
2020-06-03 19:53:13 +02:00
- name: Reload pgpool2
service: name=pgpool2 state=reloaded
2020-07-30 14:14:39 +02:00
when: ansible_distribution_file_variety == "Debian"
2020-06-03 19:53:13 +02:00
ignore_errors: True
- name: Restart pgpool2
service: name=pgpool2 state=restarted
2020-07-30 14:14:39 +02:00
when: ansible_distribution_file_variety == "Debian"
2020-06-03 19:53:13 +02:00
- name: Restart postgresql with pgpool config
service: name=postgresql state=restarted
when:
2020-07-30 14:14:39 +02:00
- ansible_distribution_file_variety == "Debian"
- psql_restart_after_wal_enabling
- name: Restart postgresql
service: name='postgresql-{{ psql_version }}' state=restarted
when: ansible_distribution_file_variety == "RedHat"
- name: Reload postgresql
service: name='postgresql-{{ psql_version }}' state=reloaded
when: ansible_distribution_file_variety == "RedHat"
- name: Reload pgpool2
service: name='pgpool2-{{ psql_version }}' state=reloaded
when: ansible_distribution_file_variety == "RedHat"
ignore_errors: True
- name: Restart pgpool2
service: name='pgpool2-{{ psql_version }}' state=restarted
when: ansible_distribution_file_variety == "RedHat"
- name: Restart postgresql with pgpool config
service: name='postgresql-{{ psql_version }}' state=restarted
when:
- ansible_distribution_file_variety == "RedHat"
2020-06-03 19:53:13 +02:00
- psql_restart_after_wal_enabling