2016-04-16 18:48:54 +02:00
|
|
|
---
|
2016-04-22 18:01:58 +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:
|
|
|
|
- haproxy_letsencrypt_managed
|
|
|
|
- letsencrypt_acme_install
|
|
|
|
tags: [ 'haproxy', 'letsencrypt' ]
|
|
|
|
|
2016-04-16 18:48:54 +02:00
|
|
|
- name: Install a script that fix the letsencrypt certificate for haproxy and then reload the service
|
2017-10-27 12:49:50 +02:00
|
|
|
template: src=haproxy-letsencrypt-acme.sh.j2 dest={{ letsencrypt_acme_services_scripts_dir }}/haproxy owner=root group=root mode=4555
|
2016-04-16 18:48:54 +02:00
|
|
|
when:
|
|
|
|
- haproxy_letsencrypt_managed
|
|
|
|
- letsencrypt_acme_install
|
|
|
|
tags: [ 'haproxy', 'letsencrypt' ]
|
|
|
|
|