Handle SELinux properly when it is disabled

This patch skips the `find` task that searches for unlabeled content on
systems with SELinux disabled. This fails because labels aren't loaded at that
time.

Manual partial backport from I7d30a07bd7e8a4461846660c281b9e53b0783461.

Change-Id: I85d02d6a20c98f1a3d507d9957b9f4d9438412a9
Closes-bug: 1649617
This commit is contained in:
Christian Berendt 2017-02-08 11:23:07 +01:00
parent 57c00eb884
commit f33e72f878
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@
always_run: True
when:
- ansible_os_family == 'RedHat'
- ansible_selinux.status != 'disabled'
tags:
- cat1
- V-51379