From 6394a87206f5364d67132d5e38b02c5bacc576ba Mon Sep 17 00:00:00 2001 From: Mikael Langer Date: Thu, 9 Mar 2023 17:08:33 +0100 Subject: [PATCH] Update all occurences of python-policycoreutils Signed-off-by: mikaellanger --- roles/alertmanager/tasks/selinux.yml | 2 +- roles/prometheus/vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/alertmanager/tasks/selinux.yml b/roles/alertmanager/tasks/selinux.yml index e2d1bb9f..754cbd0a 100644 --- a/roles/alertmanager/tasks/selinux.yml +++ b/roles/alertmanager/tasks/selinux.yml @@ -1,7 +1,7 @@ --- - name: Install selinux python packages [RedHat] ansible.builtin.package: - name: "{{ ['libselinux-python', 'python-policycoreutils'] + name: "{{ ['libselinux-python', 'policycoreutils-python'] if ansible_python_version is version('3', '<') else ['python3-libselinux', 'python3-policycoreutils'] }}" state: present diff --git a/roles/prometheus/vars/main.yml b/roles/prometheus/vars/main.yml index d1701855..5748251f 100644 --- a/roles/prometheus/vars/main.yml +++ b/roles/prometheus/vars/main.yml @@ -9,6 +9,6 @@ go_arch_map: go_arch: "{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}" _prometheus_binary_install_dir: '/usr/local/bin' -_prometheus_selinux_packages: "{{ ['libselinux-python', 'python-policycoreutils'] +_prometheus_selinux_packages: "{{ ['libselinux-python', 'policycoreutils-python'] if ansible_python_version is version('3', '<') else ['python3-libselinux', 'python3-policycoreutils'] }}"