From bece2716941ff19edd42c08aac6d6bc058ac0e62 Mon Sep 17 00:00:00 2001 From: Erik Berg Date: Sat, 25 May 2024 09:03:59 +0000 Subject: [PATCH] Install selinux packages regardless Use the generic `package` module for package installs, and install this ansible dependency regardless. --- roles/zabbix_web/tasks/selinux.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/zabbix_web/tasks/selinux.yml b/roles/zabbix_web/tasks/selinux.yml index 2a18fe189..debae80fb 100644 --- a/roles/zabbix_web/tasks/selinux.yml +++ b/roles/zabbix_web/tasks/selinux.yml @@ -1,9 +1,8 @@ --- -- name: "SELinux | RedHat | Install related SELinux package on RHEL9 and RHEL8" - ansible.builtin.yum: +- name: "SELinux | Install related SELinux package" + ansible.builtin.package: name: - python3-libsemanage - state: present environment: http_proxy: "{{ zabbix_http_proxy | default(None) | default(omit) }}" https_proxy: "{{ zabbix_https_proxy | default(None) | default(omit) }}"