diff --git a/tasks/main.yml b/tasks/main.yml index 680aeda..d3715de 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,4 +16,3 @@ loop_var: cert_item - import_tasks: renew-cron.yml - when: certbot_auto_renew diff --git a/tasks/renew-cron.yml b/tasks/renew-cron.yml index 394a30e..f57dc1a 100644 --- a/tasks/renew-cron.yml +++ b/tasks/renew-cron.yml @@ -6,3 +6,4 @@ minute: "{{ certbot_auto_renew_minute }}" hour: "{{ certbot_auto_renew_hour }}" user: "{{ certbot_auto_renew_user }}" + state: "{{ 'present' if certbot_auto_renew else 'absent' }}"