manage default value for 'peer_with_router' var

This commit is contained in:
Smaine Kahlouch 2015-10-30 16:18:39 +01:00
parent e85fb0460e
commit f6e4cc530c

View file

@ -38,7 +38,7 @@
- name: Calico | Disable node mesh
shell: calicoctl bgp node-mesh off
when: peer_with_router and inventory_hostname in groups['kube-node']
when: peer_with_router is defined and peer_with_router and inventory_hostname in groups['kube-node']
- name: Calico | Configure peering with router(s)
shell: calicoctl node bgp peer add {{ item.router_id }} as {{ item.as }}