2016-07-12 16:19:48 +02:00
|
|
|
---
|
2017-11-21 18:06:23 +01:00
|
|
|
- block:
|
|
|
|
- name: Create the acme hooks directory if it does not yet exist
|
|
|
|
file: dest={{ letsencrypt_acme_services_scripts_dir }} state=directory owner=root group=root
|
|
|
|
|
|
|
|
- name: Install a script that fix the letsencrypt certificate for pgpool and then reloads the service
|
|
|
|
copy: src=pgpool-letsencrypt-acme.sh dest={{ letsencrypt_acme_services_scripts_dir }}/pgpool owner=root group=root mode=4555
|
|
|
|
|
2016-07-12 16:19:48 +02:00
|
|
|
when:
|
2017-01-19 16:43:04 +01:00
|
|
|
- psql_pgpool_service_install
|
2016-07-12 16:19:48 +02:00
|
|
|
- pgpool_letsencrypt_managed
|
|
|
|
- letsencrypt_acme_install
|
|
|
|
tags: [ 'postgresql', 'postgres', 'pgpool', 'letsencrypt' ]
|
|
|
|
|
2017-11-21 18:06:23 +01:00
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Remove the letsencrypt hook for pgpool
|
|
|
|
file: dest=/usr/lib/acme/hooks/pgpool state=absent
|
|
|
|
|
2016-07-12 16:19:48 +02:00
|
|
|
when:
|
2017-01-19 16:43:04 +01:00
|
|
|
- psql_pgpool_service_install
|
2017-11-21 18:06:23 +01:00
|
|
|
- not pgpool_letsencrypt_managed
|
2016-07-12 16:19:48 +02:00
|
|
|
tags: [ 'postgresql', 'postgres', 'pgpool', 'letsencrypt' ]
|