From 918e14051d39ef5c45d3d81e7b648a58b56ea61f Mon Sep 17 00:00:00 2001 From: Sandwich Date: Wed, 5 Feb 2025 01:38:22 +0100 Subject: [PATCH] Enable option to disable selinux for all osses --- roles/configuration/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index 8b163c2..c12bb84 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -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=