mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-09 15:02:08 -03:30
Simplify group_by logic by moving conditional to when clause (#12469)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
This commit is contained in:
parent
fa22f9e5ab
commit
7d3e0d4fe5
@ -15,5 +15,6 @@
|
||||
- kube_control_plane
|
||||
- calico_rr
|
||||
group_by:
|
||||
key: "{{ (group_names | intersect(item.value) | length > 0) | ternary(item.key, '_all') }}"
|
||||
key: "{{ item.key }}"
|
||||
when: group_names | intersect(item.value) | length > 0
|
||||
loop: "{{ group_mappings | dict2items }}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user