You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
365 B
11 lines
365 B
5 years ago
|
---
|
||
|
|
||
|
- name: Disable SELinux
|
||
|
lineinfile: regexp='^SELINUX=.*' line='SELINUX=disabled' path=/etc/selinux/config
|
||
|
register: selinux_disabled
|
||
|
when: ansible_selinux.status == 'enabled' and ansible_selinux.mode != 'permissive'
|
||
|
|
||
|
- name: Set permissive mode
|
||
|
command: setenforce 0
|
||
|
when: ansible_selinux.status == 'enabled' and ansible_selinux.mode != 'permissive'
|