Update selinux mode by root

This change fixes the remaining error while setting selinux permissive.

TASK [Disable selinux (CentOS/RHEL<=7) (bug/1927210)]
...
centos-7 | OSError: [Errno 13] Permission denied

Related-Bug: #1927210
Change-Id: Id04e62980501f2f8e94ef6ab9b53c221ba8e231a
This commit is contained in:
Takashi Kajinami 2021-05-06 08:30:52 +09:00
parent e7d7ba5c8f
commit ba73591f22
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@
selinux:
policy: targeted
state: permissive
become: true
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != "Fedora"