mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Checks if certbot has actually generated sth
This commit is contained in:
parent
68591ede4c
commit
d8d77bac76
@ -19,3 +19,5 @@
|
|||||||
|
|
||||||
- name: Generate certificates
|
- name: Generate certificates
|
||||||
command: "{{ certbot_cert_command }} -d {{ certbot_domains | join(' -d ') }}"
|
command: "{{ certbot_cert_command }} -d {{ certbot_domains | join(' -d ') }}"
|
||||||
|
register: result
|
||||||
|
changed_when: result.stdout.find("Certificate not yet due for renewal") == -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user