mirror of
https://github.com/nikdoof/ansible-certbot.git
synced 2025-12-14 08:02:15 +00:00
Initial commit
This commit is contained in:
9
tasks/request_certs.yaml
Normal file
9
tasks/request_certs.yaml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user