Fix ansible error when making selinux permissive

This fixes the following error caused by the parent commit[1].

{
    "msg": "Policy is required if state is not 'disabled'"
}

[1] 952ae0e3f1

Related-Bug: #1927210
Change-Id: I272f0cc5c2e35752b44111425ed2f676376f26f4
This commit is contained in:
Takashi Kajinami 2021-05-06 01:12:29 +09:00
parent 952ae0e3f1
commit e7d7ba5c8f
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@
- block:
- name: Disable selinux (CentOS/RHEL<=7) (bug/1927210)
selinux:
policy: targeted
state: permissive
when:
- ansible_os_family == 'RedHat'