2015-10-27 14:42:46 +00:00
|
|
|
---
|
|
|
|
- name: "Test if network plugin is defined"
|
|
|
|
fail: msg="ERROR, One network_plugin variable must be defined (Flannel or Calico)"
|
|
|
|
when: ( kube_network_plugin is defined and kube_network_plugin == "calico" and kube_network_plugin == "flannel" ) or
|
2015-12-28 21:02:30 +00:00
|
|
|
kube_network_plugin is not defined
|
2015-10-27 14:42:46 +00:00
|
|
|
|
|
|
|
- include: flannel.yml
|
|
|
|
when: kube_network_plugin == "flannel"
|
2015-11-16 21:20:41 +00:00
|
|
|
|
2015-10-27 14:42:46 +00:00
|
|
|
- include: calico.yml
|
|
|
|
when: kube_network_plugin == "calico"
|
|
|
|
|
|
|
|
- meta: flush_handlers
|