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