-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-system-roles-1.106.1-0.1.el10
-
No
-
Low
-
rhel-system-roles
-
0
-
Dev ack
-
False
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
None
-
Pass
-
RegressionOnly
-
Bug Fix
-
-
Done
-
Unspecified
-
Unspecified
-
Unspecified
-
None
Cause: tempdir path is not defined in check mode, and __selinux_item.path may be undefined
in some cases.
Consequence: The role will give an error when running in check mode that various
variables are undefined.
Fix: Skip tasks that require tempdir.path to be defined. Handle cases where variables
may be undefined.
Result: The role works in check mode.
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
-
- Summary by Sourcery
Enable Ansible check mode support in selinux_load_module by guarding against undefined tempdir.path and __selinux_item.path.
Bug Fixes:
- Guard copy, install, and cleanup tasks against undefined tempdir.path to prevent errors in check mode
- Provide a default for __selinux_item.path when copying modules to avoid undefined path errors
Enhancements:
- Skip filesystem operations requiring tempdir.path when it is not defined to improve check mode compatibility
- links to
-
RHEA-2025:148879 rhel-system-roles bug fix and enhancement update