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.

16 lines
561 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. - name: Write network-environment
  7. template: src=network-environment.j2 dest=/etc/network-environment mode=u+x
  8. - include: flannel.yml
  9. when: kube_network_plugin == "flannel"
  10. - include: calico.yml
  11. when: kube_network_plugin == "calico"
  12. - meta: flush_handlers