[certbot] No change when certificates are already renewed
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
6054b7a545
commit
870cdd163b
|
@ -45,6 +45,8 @@
|
||||||
|
|
||||||
- name: Run certbot
|
- name: Run certbot
|
||||||
command: certbot --non-interactive --config /etc/letsencrypt/conf.d/{{ item.certname }}.ini certonly
|
command: certbot --non-interactive --config /etc/letsencrypt/conf.d/{{ item.certname }}.ini certonly
|
||||||
|
register: certbot_output
|
||||||
|
changed_when: not "Certificate not yet due for renewal" in certbot_output.stdout
|
||||||
loop: "{{ certbot }}"
|
loop: "{{ certbot }}"
|
||||||
|
|
||||||
- name: Clean old files
|
- name: Clean old files
|
||||||
|
|
Loading…
Reference in New Issue