Ansible roles
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.
 
 
 
 
 
 

10 lines
365 B

---
- 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'