forked from ISTI-ansible-roles/ansible-roles
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.
This commit is contained in:
parent
794b2f3c06
commit
29a751eb22
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue