ansible-collection-prometheus/roles/ipmi_exporter/tasks/selinux.yml
SuperQ b3582f1ff9
feat: Add ipmi_exporter role
Add a new role for the `ipmi_exporter`.

Signed-off-by: SuperQ <superq@gmail.com>
2024-01-15 09:35:44 +01:00

23 lines
735 B
YAML

---
- name: Install selinux python packages [RedHat]
ansible.builtin.package:
name: "{{ ['libselinux-python', 'policycoreutils-python']
if ansible_python_version is version('3', '<') else
['python3-libselinux', 'python3-policycoreutils'] }}"
state: present
register: _install_selinux_packages
until: _install_selinux_packages is success
retries: 5
delay: 2
when: ansible_os_family | lower == "redhat"
- name: Install selinux python packages [clearlinux]
ansible.builtin.package:
name: sysadmin-basic
state: present
register: _install_selinux_packages
until: _install_selinux_packages is success
retries: 5
delay: 2
when:
- ansible_distribution | lower == "clearlinux"