Kristian Rønningen 244d6d739f Allow renew-cron to remove cronjob if it was added earlier
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.
2018-12-04 11:55:25 +01:00

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