reload postgres after cert renewal
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-08-06 16:54:09 +02:00
parent 6b1a32dbfd
commit 3d24d6ce98
2 changed files with 15 additions and 7 deletions

View File

@ -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

View File

@ -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 }}"