ansible icon indicating copy to clipboard operation
ansible copied to clipboard

unable to run node_exporter playbook when offline and SELinux enabled on RedHat

Open avdland opened this issue 2 years ago • 0 comments

Background: We are using RedHat with SELinux enabled in an offline environment. When SELinux is enabled, the node_exporter playbook wants to make sure two packages are present: python3-libselinux and python3-policycoreutils. Problem: The task to check for the presence of the packages always fails due to Yum which is unable to fetch metadata from the Yum repositories. Note that the packages are already installed so why does Yum wants to fetch repo metadata.

I've noticed that when I run "yum check-update" beforehand with internet temporarily enabled, the task does succeed afterwards when offline...

avdland avatar Sep 28 '23 08:09 avdland