diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index 0a3662a..04994af 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -313,7 +313,7 @@ register: result - name: Disable SELinux - when: os | lower == "fedora" or not selinux | bool + when: os | lower == "fedora" or not (selinux | default(true) | bool) ansible.builtin.lineinfile: path: /mnt/etc/selinux/config regexp: ^SELINUX=