mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-12 08:43:55 +02:00
33 lines
946 B
YAML
33 lines
946 B
YAML
---
|
|
|
|
- name: Ensure OpenSSL installed (RedHat)
|
|
yum:
|
|
name:
|
|
- openssl
|
|
state: present
|
|
update_cache: no
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'RedHat'"
|
|
|
|
- name: Ensure APT usage dependencies are installed (Debian)
|
|
apt:
|
|
name:
|
|
- openssl
|
|
state: present
|
|
update_cache: no
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'Debian'"
|
|
|
|
- name: Ensure OpenSSL installed (Archlinux)
|
|
pacman:
|
|
name:
|
|
- openssl
|
|
state: latest
|
|
update_cache: no
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_distribution == 'Archlinux'"
|
|
|
|
- name: Generate self-signed certificates
|
|
include_tasks: "{{ role_path }}/tasks/ssl/setup_ssl_self_signed_obtain_for_domain.yml"
|
|
with_items: "{{ matrix_ssl_domains_to_obtain_certificates_for }}"
|
|
loop_control:
|
|
loop_var: domain_name
|
|
when: "matrix_ssl_retrieval_method == 'self-signed'"
|