check_available_rpms.yml 353 B

12345678910
  1. ---
  2. - name: Get available {{ openshift_service_type}} version
  3. repoquery:
  4. name: "{{ openshift_service_type}}{{ '-' ~ openshift_release ~ '*' if openshift_release is defined else '' }}"
  5. ignore_excluders: true
  6. register: rpm_results
  7. - fail:
  8. msg: "Package {{ openshift_service_type}} not found"
  9. when: not rpm_results.results.package_found