Fixed joined_control_planes when ansible_hostvars references a variable (#11060)
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
- name: Set fact joined_control_planes
|
- name: Set fact joined_control_planes
|
||||||
set_fact:
|
set_fact:
|
||||||
joined_control_planes: "{{ ((kube_control_planes_raw.stdout | from_json)['items']) | default([]) | map(attribute='metadata') | map(attribute='name') | list }}"
|
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'] }}"
|
loop: "{{ groups['kube_control_plane'] }}"
|
||||||
when: kube_control_planes_raw is succeeded
|
when: kube_control_planes_raw is succeeded
|
||||||
run_once: yes
|
run_once: yes
|
||||||
|
Reference in New Issue
Block a user