matrix-docker-ansible-deploy/roles/custom/matrix-base/tasks/util/ensure_openssl_installed.yml

24 lines
546 B
YAML
Raw Normal View History

---
# This is for both RedHat 7 and 8
- name: Ensure openssl installed (RedHat)
ansible.builtin.yum:
2022-01-20 05:58:39 +00:00
name:
- openssl
state: present
when: ansible_os_family == 'RedHat'
2022-01-20 05:58:39 +00:00
# This is for both Debian and Raspbian
- name: Ensure openssl installed (Debian/Raspbian)
ansible.builtin.apt:
2022-01-20 05:58:39 +00:00
name:
- openssl
state: present
2022-01-20 05:58:39 +00:00
when: ansible_os_family == 'Debian'
- name: Ensure openssl installed (Archlinux)
community.general.pacman:
2022-01-20 05:58:39 +00:00
name:
- openssl
state: present
2022-01-20 05:58:39 +00:00
when: ansible_distribution == 'Archlinux'