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

metrics system role does not work with inject_facts_as_vars = False

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • No
    • Moderate
    • rhel-system-roles
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      The role is not gathering all the needed facts:

      TASK [redhat.rhel_system_roles.private_metrics_subrole_keyserver : Set platform/version specific variables]
      task path: /usr/share/ansible/collections/ansible_collections/redhat/rhel_system_roles/roles/private_metrics_subrole_keyserver/tasks/main.yml:4

      msg: '''dict object'' has no attribute ''architecture'''

      After fixing that the next failure is:

      TASK [redhat.rhel_system_roles.firewall : Check if previous replaced is defined]
      task path: /usr/share/ansible/collections/ansible_collections/redhat/rhel_system_roles/roles/firewall/tasks/main.yml:34
      The task includes an option with an undefined variable.. 'discovered_interpreter_python' is undefined

      This happens if "inject_facts_as_vars = False" is set in ansible.cfg and while the current defaults will work there has been speculation in the past in upstream whether this should be made the new default, either way this is a QoI (Quality of Implementation) issue, the role should work even if the user is not using all-defaults ansible.cfg.

      As a side note, the role is lacking 10 as a supported version on RHEL 10 in its meta file.

      Thanks.

              rmeggins@redhat.com Richard Megginson
              myllynen Marko Myllynen
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: