|
@@ -182,7 +182,7 @@
|
|
block:
|
|
block:
|
|
- name: Set a fact for the target_csv
|
|
- name: Set a fact for the target_csv
|
|
ansible.builtin.set_fact:
|
|
ansible.builtin.set_fact:
|
|
- target_csv: "{{ sub_ip_pre[0].spec.clusterServiceVersionNames[0] }}"
|
|
|
|
|
|
+ target_csv: "{{ (sub_ip_pre | community.general.json_query('resources[?spec.approved==`true`]'))[0].spec.clusterServiceVersionNames[0] }}"
|
|
|
|
|
|
- name: Announce the CSV
|
|
- name: Announce the CSV
|
|
ansible.builtin.debug:
|
|
ansible.builtin.debug:
|