From 29a751eb22eac87d32679623ad3b43623a6b04bb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 20 Aug 2018 23:18:17 +0200 Subject: [PATCH] library/roles/letsencrypt-acme-sh-client/tasks/main.yml: Always try to execute a certificate issue when the env file changes, otherwise domains additions cannot be handled. --- letsencrypt-acme-sh-client/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/letsencrypt-acme-sh-client/tasks/main.yml b/letsencrypt-acme-sh-client/tasks/main.yml index fe90dbb3..d9eb6d5c 100644 --- a/letsencrypt-acme-sh-client/tasks/main.yml +++ b/letsencrypt-acme-sh-client/tasks/main.yml @@ -55,11 +55,12 @@ - name: Request the certificates shell: /usr/local/bin/acme-sh-request-cert - args: - creates: '{{ letsencrypt_acme_sh_base_data_dir }}/data/ok_certificate_issued' + #args: + # creates: '{{ letsencrypt_acme_sh_base_data_dir }}/data/ok_certificate_issued' register: acme_sh_certificate_issued when: acme_sh_issue is changed notify: Install the requested certificates + ignore_errors: True - name: Install a daily cron job to renew the certificates when needed cron: name="Letsencrypt certificate renewal" day={{ letsencrypt_acme_cron_day_of_month }} hour={{ letsencrypt_acme_cron_hour }} minute={{ letsencrypt_acme_cron_minute }} job="/usr/local/bin/acme-sh-cron-script > {{ letsencrypt_acme_sh_log_dir }}/acme-cron.log 2>&1"