2018-12-23 09:00:12 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Ensure OpenSSL installed (RedHat)
|
|
|
|
yum:
|
|
|
|
name:
|
|
|
|
- openssl
|
|
|
|
state: present
|
|
|
|
update_cache: no
|
2018-12-24 07:38:00 +00:00
|
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'RedHat'"
|
2018-12-23 09:00:12 +00:00
|
|
|
|
|
|
|
- name: Ensure APT usage dependencies are installed (Debian)
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- openssl
|
|
|
|
state: present
|
|
|
|
update_cache: no
|
2018-12-24 07:38:00 +00:00
|
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'Debian'"
|
2018-12-23 09:00:12 +00:00
|
|
|
|
|
|
|
- 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'"
|