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
549 B

  1. ---
  2. - name: Kube-OVN | Label ovn-db node
  3. command: >-
  4. {{ bin_dir }}/kubectl label --overwrite node {{ groups['kube-master'] | first }} kube-ovn/role=master
  5. when:
  6. - inventory_hostname == groups['kube-master'][0]
  7. - name: Kube-OVN | Create Kube-OVN manifests
  8. template:
  9. src: "{{ item.file }}.j2"
  10. dest: "{{ kube_config_dir }}/{{ item.file }}"
  11. with_items:
  12. - {name: kube-ovn-crd, file: cni-kube-ovn-crd.yml}
  13. - {name: ovn, file: cni-ovn.yml}
  14. - {name: kube-ovn, file: cni-kube-ovn.yml}
  15. register: kube_ovn_node_manifests