Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-7216

Replace inline python scripts in edpm_pre_adoption_validation role with module

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • edpm-ansible
    • None
    • 4
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?

      The role is using python scripts, executed using standard command plugin to retrieve information old service host from several files. In interest of maintainability we should replace these cases with a module call. Either using existing ansible plugin, or making our own.

      https://github.com/openstack-k8s-operators/edpm-ansible/blob/main/roles/edpm_pre_adoption_validation/tasks/hostname.yml

      Edit: It appears that the functionality was already implemented in builtins as a lookup. The task will be rescoped to use that instead.

      Edit2: Back to the module idea. The lookup turned out to be less workable than expected.

            jpodivin@redhat.com Jiri Podivin
            jpodivin@redhat.com Jiri Podivin
            rhos-dfg-df
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: