Browse Source
Fixed joined_control_planes when ansible_hostvars references a variable (#11060)
pull/11103/head
Lilian ARAGO
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
roles/kubernetes/control-plane/tasks/define-first-kube-control.yml
|
|
@ -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 |
|
|
|