2016-06-21 19:58:26 +02:00
|
|
|
---
|
|
|
|
- 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
|
|
|
|
when:
|
|
|
|
- postgresql_letsencrypt_managed
|
|
|
|
- letsencrypt_acme_install
|
|
|
|
tags: [ 'postgresql', 'postgres', 'letsencrypt' ]
|
|
|
|
|
2017-11-06 18:20:24 +01:00
|
|
|
- name: Install a script that fix the letsencrypt certificate for postgresql and then restarts the service
|
2016-06-21 19:58:26 +02:00
|
|
|
copy: src=postgresql-letsencrypt-acme.sh dest={{ letsencrypt_acme_services_scripts_dir }}/postgresql owner=root group=root mode=4555
|
|
|
|
when:
|
|
|
|
- postgresql_letsencrypt_managed
|
|
|
|
- letsencrypt_acme_install
|
|
|
|
tags: [ 'postgresql', 'postgres', 'letsencrypt' ]
|
|
|
|
|