mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-08 00:22:26 +00:00
4757c13a2e
Fix for d28bdb3258
.
We were only supposed to install openssl when the self-signed
SSL certificate retrieval method is used, not always.
25 lines
691 B
YAML
25 lines
691 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: Obtain certificates
|
|
include_tasks: "tasks/setup/ssl/setup_ssl_self_signed_obtain_for_domain.yml"
|
|
with_items: "{{ domains_requiring_certificates }}"
|
|
loop_control:
|
|
loop_var: domain_name
|
|
when: "matrix_ssl_retrieval_method == 'self-signed'"
|