mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
11 lines
365 B
YAML
11 lines
365 B
YAML
---
|
|
|
|
- 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'
|