mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
10
roles/includes/disable_selinux.yml
Normal file
10
roles/includes/disable_selinux.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- 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'
|
Reference in New Issue
Block a user