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
This commit is contained in:
Slavi Pantaleev 2022-11-05 12:10:59 +02:00
parent 5ef70015cb
commit 663f0bc5ef
4 changed files with 4 additions and 28 deletions

View File

@ -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

View File

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

View File

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

View File

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