-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-9.7
-
None
-
None
-
rhel-upgrades
-
1
-
False
-
False
-
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
Currently, there are two roles in the leapp collection that are used only to reuse same tasks from different roles and are not expected to be run by users - parse_leapp_report and common.
There is a simpler way - add tasks files under common/tasks/parse_leapp_report.yml, and then call these tasks like that:
- name: Include parse_leapp_report tasks include_role: infra.leapp.common tasks_from: parse_leapp_report.yml
That way, we keep a single common role to avoid confusion between roles that we expect customers to run, and roles that we prevent customers to run.
Ansible doesn't have a way to restrict the use of content - so everything that's in collection will be displayed in Galaxy and AH. But we can add a note to README.md saying something like "DO NOT USE THIS ROLE, IT CONTAINS TASKS FOR INTERNAL USE FROM OTHER ROLES ONLY".