disable cron when installing from Debian distro

Debian certbot package provides a systemd timer for certificate auto renewal
This commit is contained in:
Xirui Zhao 2021-03-23 04:00:01 +08:00
parent b96acd79ec
commit 2df085a19f

View File

@ -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')