You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
447 B

  1. ---
  2. - name: "Test if network plugin is defined"
  3. fail: msg="ERROR, One network_plugin variable must be defined (Flannel or Calico)"
  4. when: ( kube_network_plugin is defined and kube_network_plugin == "calico" and kube_network_plugin == "flannel" ) or
  5. kube_network_plugin is not defined
  6. - include: flannel.yml
  7. when: kube_network_plugin == "flannel"
  8. - include: calico.yml
  9. when: kube_network_plugin == "calico"
  10. - meta: flush_handlers