diff --git a/roles/letsencrypt/tasks/main.yml b/roles/letsencrypt/tasks/main.yml index a685fb83a8..30cf00d859 100644 --- a/roles/letsencrypt/tasks/main.yml +++ b/roles/letsencrypt/tasks/main.yml @@ -3,7 +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 + check_mode: no changed_when: "not ('not yet due for renewal' in certbot_output.stderr)" tags: - letsencrypt