Install openssl using ansible.builtin.package, not using a distro-specific package manager module

Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2228
development
Slavi Pantaleev 2 years ago
parent 5ef70015cb
commit 663f0bc5ef

@ -1,12 +1,6 @@
---
# This is for both RedHat 7 and 8
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ensure_openssl_installed_redhat.yml"
when: ansible_os_family == 'RedHat'
# This is for both Debian and Raspbian
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ensure_openssl_installed_debian.yml"
when: ansible_os_family == 'Debian'
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ensure_openssl_installed_archlinux.yml"
when: ansible_os_family == 'Archlinux'
- name: Ensure openssl installed
ansible.builtin.package:
name: openssl
state: present

@ -1,6 +0,0 @@
---
- name: Ensure openssl installed (Archlinux)
community.general.pacman:
name: openssl
state: present

@ -1,6 +0,0 @@
---
- name: Ensure openssl installed (Debian/Raspbian)
ansible.builtin.apt:
name: openssl
state: present

@ -1,6 +0,0 @@
---
- name: Ensure openssl installed (RedHat)
ansible.builtin.yum:
name: openssl
state: present
Loading…
Cancel
Save