mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-15 05:17:38 -02:30
Initial commit
This commit is contained in:
13
roles/overlay_network/tasks/main.yml
Normal file
13
roles/overlay_network/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: "Test if overlay network is defined"
|
||||
fail: msg="ERROR, One overlay_network variable must be defined (Flannel or Calico)"
|
||||
when: ( overlay_network_plugin is defined and overlay_network_plugin == "calico" and overlay_network_plugin == "flannel" ) or
|
||||
overlay_network_plugin is not defined
|
||||
|
||||
- include: flannel.yml
|
||||
when: overlay_network_plugin == "flannel"
|
||||
- include: calico.yml
|
||||
when: overlay_network_plugin == "calico"
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
Reference in New Issue
Block a user