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.

21 lines
673 B

9 years ago
  1. ---
  2. - name: Flannel | Stop if kernel version is too low for Flannel Wireguard encryption
  3. assert:
  4. that: ansible_kernel.split('-')[0] is version('5.6.0', '>=')
  5. when:
  6. - kube_network_plugin == 'flannel'
  7. - flannel_backend_type == 'wireguard'
  8. - not ignore_assert_errors
  9. - name: Flannel | Create Flannel manifests
  10. template:
  11. src: "{{ item.file }}.j2"
  12. dest: "{{ kube_config_dir }}/{{ item.file }}"
  13. mode: 0644
  14. with_items:
  15. - {name: flannel, file: cni-flannel-rbac.yml, type: sa}
  16. - {name: kube-flannel, file: cni-flannel.yml, type: ds}
  17. register: flannel_node_manifests
  18. when:
  19. - inventory_hostname == groups['kube_control_plane'][0]