Skip to content
Snippets Groups Projects
Unverified Commit 929c818b authored by Lilian ARAGO's avatar Lilian ARAGO Committed by GitHub
Browse files

Fixed joined_control_planes when ansible_hostvars references a variable (#11060)

parent 4baa2c87
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
- name: Set fact joined_control_planes
set_fact:
joined_control_planes: "{{ ((kube_control_planes_raw.stdout | from_json)['items']) | default([]) | map(attribute='metadata') | map(attribute='name') | list }}"
delegate_to: item
delegate_to: "{{ item }}"
loop: "{{ groups['kube_control_plane'] }}"
when: kube_control_planes_raw is succeeded
run_once: yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment