forked from ISTI-ansible-roles/ansible-roles
Merge branch 'master' of adellam/ansible-roles into master
This commit is contained in:
commit
f79b89cd98
|
@ -84,12 +84,15 @@
|
|||
tags: [ 'letsencrypt', 'letsencrypt_acme_sh' ]
|
||||
|
||||
- block:
|
||||
- name: Remove the ok_certificate_issued file when the env file has been changed so that we can force a new request
|
||||
file: dest={{ letsencrypt_acme_sh_base_data_dir }}/data/ok_certificate_issued state=absent
|
||||
when: acme_sh_issue is changed
|
||||
|
||||
- name: Request the certificates. As root because we must bind on port 80
|
||||
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
|
||||
ignore_errors: True
|
||||
|
||||
- name: Check if the 'live' path is a symling. It is, if acmetool was installed
|
||||
|
|
Loading…
Reference in New Issue