Fix AppArmor dmesg grep task
The task that checks for AppArmor being disabled at boot time fails if the line isn't present in dmesg. This patch ensures that the output from dmesg is always maintained and the shell always comes back with success. Closes-Bug: 1694508 Change-Id: Ied083e02855b2173d766c7cfd33045e737a79a43
This commit is contained in:
parent
7eeddf0d11
commit
1f89531fb8
|
@ -14,7 +14,7 @@
|
|||
# limitations under the License.
|
||||
|
||||
- name: Check if AppArmor is disabled at boot time
|
||||
shell: "dmesg | grep -i apparmor"
|
||||
shell: "dmesg | grep -i apparmor || true"
|
||||
register: dmesg_apparmor_output
|
||||
changed_when: False
|
||||
check_mode: no
|
||||
|
|
Loading…
Reference in New Issue