- name: "Discovery: Find RPM and Manifest"
ansible.builtin.find:
paths: "{{ openshift_temp_dir.temp_dir }}/{{ lightspeed.build_version }}"
patterns:
- "*.rpm"
- "manifest.json"
register: found_artifacts
- name: "Report Discovered Files"
ansible.builtin.debug:
msg:
- "Search Path: {{ openshift_temp_dir.temp_dir }}/{{ lightspeed.build_version }}"
- "Files Found (Count): {{ found_artifacts.matched }}"
- "Details: {{ found_artifacts.files | map(attribute='path') | list }}"
- name: "Fail if manifest is missing"
ansible.builtin.fail:
msg: |
Error: Missing artifacts!
Expected: at least an RPM and a manifest.json.
Found: {{ found_artifacts.matched }} files.
Checked path: {{ openshift_temp_dir.temp_dir }}/{{ lightspeed.build_version }}
when: found_artifacts.matched < 2
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)