Checks if certbot has actually generated sth

pull/34/head
Nikolaos Kakouros 7 years ago
parent 68591ede4c
commit d8d77bac76
  1. 2
      tasks/generate-certs.yml

@ -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…
Cancel
Save