Skip to content
Snippets Groups Projects
Commit af55e179 authored by Justin Hunthrop's avatar Justin Hunthrop
Browse files

adding --skip-exists flag for peer_with_router

parent a10ccadb
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@
"apiVersion": "v1",
"metadata": {"node": "{{ inventory_hostname }}", "scope": "node", "peerIP": "{{ item.router_id }}"}
}'
| {{ bin_dir }}/calicoctl create -f -
| {{ bin_dir }}/calicoctl create --skip-exists -f -
with_items: "{{ peers|default([]) }}"
when: (not legacy_calicoctl and
peer_with_router|default(false) and inventory_hostname in groups['k8s-cluster'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment