๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/certs/tasks/acme_dns.yml

25 lines
1000 B

2 years ago
- name: set combined cert info
set_fact:
combined: "{{ (common | d({})) | combine(cert | d({}), recursive=true) }}"
- name: generate certificate through acme-dns
include_role:
name: acme
vars:
acme_id: "{{ cert.id | d(host_name ~ ('-ecc' if (combined.ecc | d(false) == true) else '')) }}"
acme_cert: "{{ cert.cert }}"
acme_key: "{{ cert.key }}"
acme_chain: "{{ cert.chain | d(None) }}"
acme_cert_single: "{{ cert.cert_single | d(None) }}"
acme_ecc: "{{ combined.ecc | d(false) }}"
acme_stapling: no
acme_notify: "{{ combined.notify | d(None) }}"
acme_owner: "{{ combined.owner | d(None) }}"
acme_group: "{{ combined.group | d(None) }}"
acme_post_hook: "{{ combined.post_hook | d(None) }}"
acme_hostname: "{{ combined.hostname | d(None) }}"
acme_tld: "{{ combined.tld | d(None) }}"
acme_fqdn: "{{ combined.fqdn | d(None) }}"
acme_hosts: "{{ combined.hosts | d(None) }}"
acme_server: "{{ combined.acme_server | d(None) }}"