cacert/tasks/main.yaml

22 lines
543 B
YAML
Raw Normal View History

2022-08-22 14:32:32 +00:00
- name: CA and certs | Check if ssl gen dir exist
file:
name: "{{ cacert_ssl_gen_path }}"
state: directory
2022-09-06 11:31:23 +00:00
when:
- inventory_hostname in groups[cacert_ca_group]
2022-08-22 14:32:32 +00:00
2022-09-06 11:31:23 +00:00
- name: CA and certs | Include CA
2022-08-22 14:32:32 +00:00
include_tasks: ca.yaml
2022-09-06 11:31:23 +00:00
- name: CA and certs | Include CN certs
include_tasks: cn_certs.yaml
loop: "{{ cacert_cn_certs }}"
when:
- cacert_cn_certs is defined
- name: CA and certs | Include group certs
include_tasks: group_certs.yaml
loop: "{{ cacert_group_certs }}"
when:
- cacert_group_certs is defined