Merge "make selinux check only for rhel distribution"

This commit is contained in:
Zuul 2020-11-26 07:58:26 +00:00 committed by Gerrit Code Review
commit d3c563e3ba
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@
become: true
register: sestatus
changed_when: false
when:
- "ansible_os_family == 'RedHat'"
- name: Fail if SELinux is not in Enforced mode (RHEL)
fail: