From 4fc0e7bdec33b22de8b6060cf5e50b0f2f3f837c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 1 Dec 2025 09:58:56 -0600 Subject: [PATCH] r/base: Conditionally install Python SELinux libs We do not need to install the SELinux bindings for operating systems that do not support SELinux. --- roles/base/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 3819603..f97367c 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -17,6 +17,8 @@ package: name: '{{ selinux_python_libs }}' state: present + when: + ansible_selinux.status == 'enabled' notify: - gather facts tags: