2021-11-15 20:36:54 -03:00

44 lines
1.0 KiB
YAML

---
- import_tasks: include-vars.yml
- import_tasks: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
- import_tasks: install-with-package.yml
when: certbot_install_method == 'package'
- import_tasks: install-with-snap.yml
when: certbot_install_method == 'snap'
- import_tasks: install-from-source.yml
when: certbot_install_method == 'source'
- include_tasks: delete-cert.yml
with_items: "{{ certbot_certs }}"
when:
- certbot_delete_certificate|bool
loop_control:
loop_var: cert_item
- include_tasks: create-cert-standalone.yml
with_items: "{{ certbot_certs }}"
when:
- certbot_create_if_missing
- certbot_create_method == 'standalone'
- not certbot_delete_certificate
loop_control:
loop_var: cert_item
- include_tasks: create-cert-dns-plugin.yml
with_items: "{{ certbot_certs }}"
when:
- certbot_create_if_missing
- certbot_create_method == 'dns'
- not certbot_delete_certificate
loop_control:
loop_var: cert_item
- import_tasks: renew-cron.yml
when:
- certbot_auto_renew