|
@@ -8,18 +8,21 @@
|
|
|
grep -i LibreELEC /etc/os-release"
|
|
|
changed_when: false
|
|
|
|
|
|
+
|
|
|
- name: Gather facts now that Python is installed
|
|
|
setup:
|
|
|
|
|
|
+
|
|
|
- name: Install sudo and lsb (RPM)
|
|
|
package:
|
|
|
name:
|
|
|
- sudo
|
|
|
- - "{% if ansible_distribution_major_version != '9' %}redhat-lsb-core{% else %}python3-libselinux{% endif %}"
|
|
|
+ - "{% if ansible_distribution_major_version|int < 9 or ansible_distribution_major_version|int > 40 %}redhat-lsb-core{% else %}python3-distro{% endif %}"
|
|
|
state: present
|
|
|
when:
|
|
|
- ansible_distribution == 'CentOS' or ansible_distribution == 'Fedora'
|
|
|
|
|
|
+
|
|
|
- name: Install sudo and lsb (DEB)
|
|
|
package:
|
|
|
name:
|
|
@@ -29,13 +32,14 @@
|
|
|
when:
|
|
|
- ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
|
|
-- name: Install SELinux Python Modules (Fedora)
|
|
|
+
|
|
|
+- name: Install SELinux Python Modules (RPM)
|
|
|
package:
|
|
|
name:
|
|
|
- python3-libselinux
|
|
|
state: present
|
|
|
when:
|
|
|
- - ansible_distribution == 'Fedora'
|
|
|
+ - ansible_distribution == 'CentOS' or ansible_distribution == 'Fedora'
|
|
|
|
|
|
- name: Gather facts again now that lsb is installed
|
|
|
setup:
|