Skip to content
Snippets Groups Projects
Unverified Commit b3389684 authored by orange-llajeanne's avatar orange-llajeanne Committed by GitHub
Browse files

apply calico bgp peer definition task to all nodes, but delegate to (#8974)

first control plane node
parent ca212c08
No related branches found
No related tags found
No related merge requests found
...@@ -569,9 +569,10 @@ ...@@ -569,9 +569,10 @@
delay: "{{ retry_stagger | random + 3 }}" delay: "{{ retry_stagger | random + 3 }}"
with_items: with_items:
- "{{ peers|selectattr('scope','undefined')|list|default([]) | union(peers|selectattr('scope','defined')|selectattr('scope','equalto', 'node')|list|default([])) }}" - "{{ peers|selectattr('scope','undefined')|list|default([]) | union(peers|selectattr('scope','defined')|selectattr('scope','equalto', 'node')|list|default([])) }}"
delegate_to: "{{ groups['kube_control_plane'][0] }}"
when: when:
- peer_with_router|default(false) - peer_with_router|default(false)
- inventory_hostname == groups['kube_control_plane'][0] - inventory_hostname in groups['k8s_cluster']
- name: Calico | Create Calico ipam manifests - name: Calico | Create Calico ipam manifests
template: template:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment