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,10 +1,17 @@
|
|||||||
---
|
---
|
||||||
- name: Restart service
|
- block:
|
||||||
service:
|
- name: Restart service
|
||||||
name: "{{ __postgres_daemon }}"
|
service:
|
||||||
state: restarted
|
name: "{{ __postgres_daemon }}"
|
||||||
enabled: yes
|
state: restarted
|
||||||
daemon_reload: yes
|
enabled: yes
|
||||||
listen: __postgres_restart
|
daemon_reload: yes
|
||||||
|
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