Merge pull request #1309 from jhunthrop/router-peering

adding --skip-exists flag for peer_with_router
This commit is contained in:
Spencer Smith 2017-05-25 18:50:54 -04:00 committed by GitHub
commit 6ba926381b

View file

@ -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'])