File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
roles/env_op_images/tasks Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 3838 environment :
3939 ANSIBLE_LOG_PATH : " {{ ansible_user_dir }}/ci-framework-data/logs/e2e-collect-logs-must-gather.log"
4040
41- - name : " Run ci/playbooks/e2e- collect-logs.yml on CRC host"
41+ - name : " Run ci/playbooks/collect-logs.yml on CRC host"
4242 hosts : crc
4343 gather_facts : false
4444 tasks :
Original file line number Diff line number Diff line change 4646 PATH : " {{ cifmw_path }}"
4747 block :
4848 - name : Get images from the CSV
49- ansible.builtin.command :
49+ ansible.builtin.shell :
5050 cmd : >-
5151 oc get ClusterServiceVersion
5252 -l operators.coreos.com/openstack-operator.openstack-operators
5353 --all-namespaces
54- -o yaml
55- register : _csvs_out
54+ -o yaml > /tmp/csvs_output.yaml
55+ no_log : " {{ cifmw_nolog | default(true) | bool }} "
5656
5757 - name : Get the images name
5858 ansible.builtin.shell : >
9595 cifmw_install_yamls_vars_content :
9696 OPENSTACK_IMG : " {{ selected_pod.status.containerStatuses[0].imageID }}"
9797
98+ - name : Read csvs_output.yaml file
99+ ansible.builtin.slurp :
100+ src : /tmp/csvs_output.yaml
101+ register : _csvs_out
102+ no_log : " {{ cifmw_nolog | default(true) | bool }}"
103+
98104 - name : Get all the pods in openstack-operator namespace
99105 vars :
100- csv_items : " {{ (_csvs_out.stdout | from_yaml)['items'] }}"
106+ parsed_csv : " {{ _csvs_out['content'] | b64decode | from_yaml }}"
107+ csv_items : " {{ parsed_csv['items'] }}"
101108 kubernetes.core.k8s_info :
102109 kind : Pod
103110 namespace : >-
140147 loop : " {{ selected_pods }}"
141148 loop_control :
142149 label : " {{ item.metadata.name }}"
150+ no_log : " {{ cifmw_nolog | default(true) | bool }}"
143151
144152 - name : Write images to file
145153 vars :
You can’t perform that action at this time.
0 commit comments