reload postgres after cert renewal
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6b1a32dbfd
commit
3d24d6ce98
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
- block:
|
||||||
- name: Restart service
|
- name: Restart service
|
||||||
service:
|
service:
|
||||||
name: "{{ __postgres_daemon }}"
|
name: "{{ __postgres_daemon }}"
|
||||||
@ -6,5 +7,11 @@
|
|||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
listen: __postgres_restart
|
listen: __postgres_restart
|
||||||
|
|
||||||
|
- name: Reload service
|
||||||
|
service:
|
||||||
|
name: "{{ __postgres_daemon }}"
|
||||||
|
state: reloaded
|
||||||
|
listen: __postgres_reload
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -24,5 +24,6 @@
|
|||||||
- { src: "{{ postgres_tls_cert_source }}", dest: '{{ __postgres_tls_cert_path }}', mode: '0750' }
|
- { src: "{{ postgres_tls_cert_source }}", dest: '{{ __postgres_tls_cert_path }}', mode: '0750' }
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
|
notify: __postgres_reload
|
||||||
become: True
|
become: True
|
||||||
become_user: "{{ postgres_user }}"
|
become_user: "{{ postgres_user }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user