Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit b133dbd

Browse files
noraabpaulfantom
authored andcommitted
Fix failing role on non-SELinux RedHat (#37)
[patch] Allow playbook to run on RedHat even if SELinux is not enabled.
1 parent 34012f4 commit b133dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
setype: http_port_t
9292
state: present
9393
when:
94-
- ansible_os_family == "RedHat"
95-
- ansible_virtualization_type != "docker"
94+
- ansible_version.full is version_compare('2.4', '>=')
95+
- ansible_selinux.status == "enabled"
9696

9797
- name: Ensure Node Exporter is enabled on boot
9898
systemd:

0 commit comments

Comments
 (0)