mirror of
https://github.com/nikdoof/ansible-certbot.git
synced 2025-12-13 07:32:15 +00:00
12 lines
428 B
YAML
12 lines
428 B
YAML
---
|
|
- name: Certbot - Add host FQDN if not already listed in certs
|
|
ansible.builtin.set_fact:
|
|
certbot_certs: "{{ certbot_certs + [{'hostname': ansible_facts['fqdn']}] }}"
|
|
when:
|
|
- certbot_request_fqdn_cert
|
|
- certbot_certs | selectattr('hostname', 'equalto', ansible_facts['fqdn']) | list | length == 0
|
|
|
|
- name: Certbot - Request Certificate
|
|
ansible.builtin.include_tasks: cert.yaml
|
|
loop: "{{ certbot_certs }}"
|