dont fail if selinux is undefined
This commit is contained in:
@@ -313,7 +313,7 @@
|
|||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Disable SELinux
|
- name: Disable SELinux
|
||||||
when: os | lower == "fedora" or not selinux | bool
|
when: os | lower == "fedora" or not (selinux | default(true) | bool)
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /mnt/etc/selinux/config
|
path: /mnt/etc/selinux/config
|
||||||
regexp: ^SELINUX=
|
regexp: ^SELINUX=
|
||||||
|
|||||||
Reference in New Issue
Block a user