dont fail if selinux is undefined

This commit is contained in:
Sandwich 2025-02-07 20:47:30 +01:00
parent 518babe328
commit 4ed15e5ea8

@ -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=