cacert/tasks/main.yaml

14 lines
395 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
- name: CA and certs | Include CA creation
include_tasks: ca.yaml
when: "inventory_hostname in groups.cacert_ca"
- name: CA and certs | Include certs creation
include_tasks: certs.yaml
loop: "{{ cacert_certs }}"
2022-08-25 15:49:19 +00:00
when: "inventory_hostname in groups.cacert_clients"