dont fail if selinux is undefined
This commit is contained in:
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=
|
||||
|
Loading…
x
Reference in New Issue
Block a user