Initial commit

This commit is contained in:
2023-06-23 07:18:31 +01:00
commit 76624cf398
10 changed files with 161 additions and 0 deletions

9
tasks/request_certs.yaml Normal file
View File

@@ -0,0 +1,9 @@
---
- name: Add FQDN if not already listed in certs
ansible.builtin.set_fact:
certbot_certs: "{{ certbot_certs + [{'hostname': ansible_fqdn}] }}"
when: certbot_certs | selectattr('hostname', 'equalto', ansible_fqdn) | list | length == 0
- name: Request Certificate
ansible.builtin.include_tasks: cert.yaml
loop: "{{ certbot_certs }}"