ansible_image_validation/validation-playbooks/per-vm-validation.yaml [33:44]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- name: Execute command to list packages
  shell: |
    package_list=$( rpm -qa --qf ' "%{NAME}": { "version": " %{VERSION}", "release": "%{RELEASE}" \},' )
    package_list=${package_list%,}
    package_json="{  $package_list  }"
    echo $package_json | jq -r .
  register: package_list_output

- name: Set package facts
  set_fact:
    ansible_facts:
      packages: "{{ package_list_output.stdout | from_json }}"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ansible_image_validation/validation-playbooks/per-vm-validation.yaml [120:131]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - name: Execute command to list packages
    shell: |
      package_list=$( rpm -qa --qf ' "%{NAME}": { "version": " %{VERSION}", "release": "%{RELEASE}" \},' )
      package_list=${package_list%,}
      package_json="{ $package_list }"
      echo $package_json | jq -r .
    register: package_list_output

  - name: Set package facts
    set_fact:
      ansible_facts:
        packages: "{{ package_list_output.stdout | from_json }}"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



