diff --git a/roles/letsencrypt/tasks/main.yml b/roles/letsencrypt/tasks/main.yml index e2cd49907a..a685fb83a8 100644 --- a/roles/letsencrypt/tasks/main.yml +++ b/roles/letsencrypt/tasks/main.yml @@ -3,6 +3,7 @@ command: certbot certonly --keep -n --webroot --webroot-path /var/www/html/ -d {{','.join([site_name] + server_aliases)}} run_once: true register: certbot_output + check_node: no changed_when: "not ('not yet due for renewal' in certbot_output.stderr)" tags: - letsencrypt