Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-131055

Move the parse_leapp_report role into a task in the common role

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.7
    • None
    • rhel-upgrades
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • 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".

              rmeggins@redhat.com Richard Megginson
              spetros@redhat.com Sergei Petrosian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: