Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions etc/kayobe/inventory/group_vars/all/selinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# Configure SELinux in permissive mode when configuring a Rocky Linux 9 host.
selinux_state: "{{ 'permissive' if ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9' else 'disabled' }}"

# Do NOT reboot Rocky Linux 9 hosts to apply SELinux config changes. Operators
# must opt-in by changing this variable when applying host configuration. This
# is to avoid automatically rebooting hosts originally deployed with SELinux
# disabled and which now need to be changed to permissive.
disable_selinux_do_reboot: "{{ not (ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9') }}"
7 changes: 7 additions & 0 deletions releasenotes/notes/selinux-permissive-bb953d2cdcd7a545.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
upgrade:
- |
SELinux mode is now set to permissive when configuring Rocky Linux 9 hosts,
to match the default mode in the Zed release. If SELinux is disabled on
these hosts, a reboot is required and will only be performed by Ansible if
``disable_selinux_do_reboot`` is changed to ``true``.