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

Commit

Permalink
Fix failing role on non-SELinux RedHat (#37)
Browse files Browse the repository at this point in the history
[patch] Allow playbook to run on RedHat even if SELinux is not enabled.
  • Loading branch information
noraab authored and paulfantom committed May 23, 2018
1 parent 34012f4 commit b133dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
setype: http_port_t
state: present
when:
- ansible_os_family == "RedHat"
- ansible_virtualization_type != "docker"
- ansible_version.full is version_compare('2.4', '>=')
- ansible_selinux.status == "enabled"

- name: Ensure Node Exporter is enabled on boot
systemd:
Expand Down

0 comments on commit b133dbd

Please sign in to comment.