mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
If the `certbot_auto_renew` variable was `True`, and the cronjob was added, setting it to `False` would not remove it. By always including the `renew-cron.yml` task file, and instead checking the `certbot_auto_renew` value there, and pick a value for `state` based on it, we can clean up a cronjob if it is no longer wanted.
19 lines
433 B
YAML
19 lines
433 B
YAML
---
|
|
- import_tasks: include-vars.yml
|
|
|
|
- import_tasks: install-with-package.yml
|
|
when: not certbot_install_from_source
|
|
|
|
- import_tasks: install-from-source.yml
|
|
when: certbot_install_from_source
|
|
|
|
- include_tasks: create-cert-standalone.yml
|
|
with_items: "{{ certbot_certs }}"
|
|
when:
|
|
- certbot_create_if_missing
|
|
- certbot_create_method == 'standalone'
|
|
loop_control:
|
|
loop_var: cert_item
|
|
|
|
- import_tasks: renew-cron.yml
|