22 lines
664 B
YAML
22 lines
664 B
YAML
---
|
|
|
|
- name: Certificates | Checking config
|
|
ansible.builtin.fail:
|
|
msg: "The required configuration was not provided!
|
|
Needed: 'certs'"
|
|
when: certs is undefined
|
|
|
|
- name: Certificates | Internal signed
|
|
ansible.builtin.include_tasks: internal/main.yml
|
|
when: "CERT_CONFIG.mode in ['ca_full', 'ca', 'selfsigned']"
|
|
|
|
- name: Certificates | Internal | CA
|
|
ansible.builtin.include_tasks: debian/ca_full.yml
|
|
when: CERT_CONFIG.mode == 'ca_full'
|
|
|
|
- name: Certificates | Debian | Letsencrypt
|
|
ansible.builtin.include_tasks: debian/letsencrypt/main.yml
|
|
when:
|
|
- CERT_CONFIG.mode == 'le_certbot'
|
|
- "ansible_distribution|lower in ['debian', 'ubuntu']"
|