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.

26 lines
794 B

  1. ---
  2. - name: Custom CNI | Check Custom CNI Manifests
  3. assert:
  4. that:
  5. - "custom_cni_manifests | length > 0"
  6. msg: "custom_cni_manifests should not be empty"
  7. - name: Custom CNI | Copy Custom manifests
  8. template:
  9. src: "{{ item }}"
  10. dest: "{{ kube_config_dir }}/{{ item | basename | replace('.j2', '') }}"
  11. mode: 0644
  12. loop: "{{ custom_cni_manifests }}"
  13. delegate_to: "{{ groups['kube_control_plane'] | first }}"
  14. run_once: true
  15. - name: Custom CNI | Start Resources
  16. kube:
  17. namespace: "kube-system"
  18. kubectl: "{{ bin_dir }}/kubectl"
  19. filename: "{{ kube_config_dir }}/{{ item | basename | replace('.j2', '') }}"
  20. state: "latest"
  21. wait: true
  22. loop: "{{ custom_cni_manifests }}"
  23. delegate_to: "{{ groups['kube_control_plane'] | first }}"
  24. run_once: true