ansible-role-mumble/tasks/self_signed.yml

38 lines
833 B
YAML
Raw Normal View History

- name: Install SSL dependencies
package:
2021-03-28 10:48:06 +02:00
name:
- ssl-cert
- python3-openssl
state: present
tags: selfsigned_install
- name: Create SSL config directories
file:
path: "{{ config_dir }}"
state: directory
owner: root
2020-12-27 18:18:17 +01:00
group: root
mode: "755"
loop:
2020-12-27 18:18:17 +01:00
- "{{ acme_config_dir }}"
- "{{ acme_certs_dir }}"
- "{{ acme_csr_dir }}"
loop_control:
loop_var: config_dir
tags: selfsigned_install
2020-12-27 18:18:17 +01:00
- name: Create ACME private keys directory
file:
2020-12-27 18:18:17 +01:00
path: "{{ acme_keys_dir }}"
state: directory
owner: root
group: "{{ acme_ssl_group }}"
2020-12-27 18:18:17 +01:00
mode: "750"
tags: acme_install
2020-12-27 18:18:17 +01:00
- name: Install Self-Signed certificate for each domain
include_tasks: self_signed_domain.yml
2020-12-30 14:42:07 +01:00
loop: "{{ acme_domains }}"
2020-12-27 18:18:17 +01:00
loop_control:
loop_var: domain
label: "{{ domain.name }}"