The selinux_mode default variable uses a fact generated during the pre-ripu analysis. However if the server has selinux set to disabled, the correct fact (config_mode) is not created and therefore causes a failure during the selinux mode configuration tasks, due to a missing variable.
The facts generated when selinux is active (enforcing or permissive):
The selinux_mode default variable uses a fact generated during the pre-ripu analysis. However if the server has selinux set to disabled, the correct fact (config_mode) is not created and therefore causes a failure during the selinux mode configuration tasks, due to a missing variable.
The facts generated when selinux is active (enforcing or permissive):
The facts generated when selinux is disabled: