mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 05:40:18 +00:00
d044d8894b
* feat: Add redis_exporter role --------- Signed-off-by: anviar <oleg.kluchkin+github@gmail.com>
23 lines
735 B
YAML
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"
|