Don't start LSM in check mode
This patch checks to see if the role is being run in check mode. If it is in check mode, the AppArmor service will not be started and the SELinux configuration will not be adjusted. Change-Id: Iae976f283df77556a71833f857a906097e6f8aeb
This commit is contained in:
parent
0e85c4fa5f
commit
45330fee23
@ -36,6 +36,7 @@
|
||||
when:
|
||||
- ansible_os_family == "Debian"
|
||||
- security_enable_linux_security_module | bool
|
||||
- not check_mode
|
||||
tags:
|
||||
- cat2
|
||||
- V-51337
|
||||
@ -64,6 +65,7 @@
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
- security_enable_linux_security_module | bool
|
||||
- not check_mode
|
||||
tags:
|
||||
- cat2
|
||||
- V-51337
|
||||
|
Loading…
x
Reference in New Issue
Block a user