Enable option to disable selinux for all osses

This commit is contained in:
Sandwich 2025-02-05 01:38:22 +01:00
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=