2018-12-23 11:00:12 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Ensure OpenSSL installed (RedHat)
|
|
|
|
yum:
|
|
|
|
name:
|
|
|
|
- openssl
|
|
|
|
state: present
|
|
|
|
update_cache: no
|
2018-12-24 09:38:00 +02:00
|
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'RedHat'"
|
2018-12-23 11:00:12 +02:00
|
|
|
|
|
|
|
- name: Ensure APT usage dependencies are installed (Debian)
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- openssl
|
|
|
|
state: present
|
|
|
|
update_cache: no
|
2018-12-24 09:38:00 +02:00
|
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_os_family == 'Debian'"
|
2018-12-23 11:00:12 +02:00
|
|
|
|
2020-03-28 12:39:15 +02:00
|
|
|
- name: Ensure OpenSSL installed (Archlinux)
|
|
|
|
pacman:
|
|
|
|
name:
|
|
|
|
- openssl
|
|
|
|
state: latest
|
|
|
|
update_cache: no
|
2020-03-28 14:00:01 +02:00
|
|
|
when: "matrix_ssl_retrieval_method == 'self-signed' and ansible_distribution == 'Archlinux'"
|
2020-03-28 12:39:15 +02:00
|
|
|
|
2018-12-24 09:39:27 +02:00
|
|
|
- name: Generate self-signed certificates
|
2019-01-12 17:53:00 +02:00
|
|
|
include_tasks: "{{ role_path }}/tasks/ssl/setup_ssl_self_signed_obtain_for_domain.yml"
|
2019-01-16 18:05:48 +02:00
|
|
|
with_items: "{{ matrix_ssl_domains_to_obtain_certificates_for }}"
|
2018-12-23 11:00:12 +02:00
|
|
|
loop_control:
|
|
|
|
loop_var: domain_name
|
|
|
|
when: "matrix_ssl_retrieval_method == 'self-signed'"
|