-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
None
-
Low
-
rhel-system-roles
-
0
-
Dev ack
-
False
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
Bug Fix
-
-
Proposed
-
Unspecified
-
Unspecified
-
Unspecified
-
None
Cause: The `when` condition in the `block` does not prevent Ansible from attempting to
expand templates with undefined values used in the `name` of tasks within the block.
Consequence: The role issues undefined variable errors when the role is used
with `import_role` and modules with no path set.
Fix: In the `name` for the tasks, use the `d` filter to provide a value
to use if the variable is undefined. This will allow usage with `import_role`
to work, and usage with `include_role` will get the extra information in
the name.
Result: The role does not error when used with `import_role` and modules
with no `path`.
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
-
- Summary by Sourcery
Bug Fixes:
- Prevent undefined variable errors by providing default values for selinux module path variables used in task names.
- links to