cloudalchemy / ansible-prometheus

Deploy Prometheus monitoring system
MIT License
1.11k stars 454 forks source link

Add Rocky Linux support #366

Closed dmrub closed 1 year ago

dmrub commented 3 years ago

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

sjpb commented 2 years ago

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 commented 2 years ago

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

stale[bot] commented 2 years ago

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.

SuperQ commented 1 year ago

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