CI: more readable loop

Avoids putting whole pod spec in loop label
This commit is contained in:
Max Gautier
2025-06-12 12:27:45 +02:00
parent 4a0a73b307
commit e369ac2f24

View File

@@ -107,6 +107,8 @@
with_nested: with_nested:
- "{{ pods }}" - "{{ pods }}"
- "{{ pods }}" - "{{ pods }}"
loop_control:
label: "{{ item[0].metadata.name + ' --> ' + item[1].metadata.name }}"
rescue: rescue:
- name: List pods cluster-wide - name: List pods cluster-wide
command: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide" command: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"