From 2df085a19f441575de788692dd0d27e8eb4c25a6 Mon Sep 17 00:00:00 2001 From: Xirui Zhao <35286069+xiruizhao@users.noreply.github.com> Date: Tue, 23 Mar 2021 04:00:01 +0800 Subject: [PATCH] disable cron when installing from Debian distro Debian certbot package provides a systemd timer for certificate auto renewal --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 52aa6af..f3922fa 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,4 +19,5 @@ loop_var: cert_item - import_tasks: renew-cron.yml - when: certbot_auto_renew + when: certbot_auto_renew and not (ansible_os_family == 'Debian' and + certbot_install_method == 'package')