Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-22547

[RFE] Remediation Playbook uses old sytax code, which does not use FQCN in the playbook.

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Remediations
    • insights-ops-1
    • Red Hat Lightspeed (Insights)

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

      Description of Problem

      Remediation Playbook uses old sytax code, which does not use FQCN in the playbook created for Remediation plan in HCC. For example, a playbook might include this:

      - name: update packages
        hosts: "..."
        tasks:
          - name: check for update
            shell: "..."
      

      A more modern playbook would reference ansible.builtin.shell, not shell.

      How reproducible

      Always. Procedure:

      • Create a remediation plan, and download a playbook for that plan, with a call to GET /remediations/:id/playbook, or
      • Create a playbook with a call to POST /playbook.

      Actual Behavior

      Playbooks don't use FQCNs.

      Expected Behavior

      Playbooks use FQCNs.

      Next steps:

      • Determine the minimum version of ansible-runner which supports FQCNs.
      • Determine which versions of ansible-runner our various rhc-worker-playbook packages provide.

        1. image (28).png
          50 kB
          Gaurav Mukhraiya

              Unassigned Unassigned
              rhn-support-gmukhrai Gaurav Mukhraiya
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: