ansible-prometheus icon indicating copy to clipboard operation
ansible-prometheus copied to clipboard

Add Rocky Linux support

Open dmrub opened this issue 3 years ago • 3 comments

This is a workaround because Rocky Linux is not identified as RedHat until Ansible 2.11. https://forums.rockylinux.org/t/ansible-os-family-question/3320

dmrub avatar Aug 14 '21 21:08 dmrub

I'm on ansible [core 2.11.5] and I still needed this PR, else I got the following on Rocky 8.5:

TASK [cloudalchemy.prometheus : Install SELinux dependencies] *********************************************************************************************************
failed: [alaska-control] (item=libselinux-python) => {
    "ansible_loop_var": "item",
    "attempts": 5,
    "changed": false,
    "failures": [
        "libselinux-python All matches were filtered out by modular filtering for argument: libselinux-python"
    ],
    "item": "libselinux-python",
    "rc": 1,
    "results": []
}

MSG:

Failed to install some of the specified packages

Maybe the package names have changed from libselinux-python to python3-libselinux from 8.x to 8.5??

I don't understand the CI lint failure but this PR works for me.

sjpb avatar Dec 21 '21 15:12 sjpb

This should be fixed already for all RHEL clones in master by aa95978755345097effca886bf116dace739d31b

sjpb avatar Jan 12 '22 12:01 sjpb

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 11:04 stale[bot]

This role has been deprecated in favor of a the prometheus-community/ansible collection.

SuperQ avatar Mar 06 '23 15:03 SuperQ