Enable option to disable selinux for all osses
This commit is contained in:
parent
3d18962160
commit
918e14051d
@ -233,7 +233,7 @@
|
||||
mode: '0644'
|
||||
loop:
|
||||
- /mnt/etc/issue
|
||||
- /mnt/etc/issue.net
|
||||
- /etc/issue.net
|
||||
|
||||
- name: Setup Network
|
||||
block:
|
||||
@ -303,7 +303,7 @@
|
||||
register: result
|
||||
|
||||
- name: Disable SELinux
|
||||
when: os | lower == "fedora"
|
||||
when: os | lower == "fedora" or not selinux | bool
|
||||
ansible.builtin.lineinfile:
|
||||
path: /mnt/etc/selinux/config
|
||||
regexp: ^SELINUX=
|
||||
|
Loading…
x
Reference in New Issue
Block a user