2019-07-31 03:10:20 +00:00
|
|
|
---
|
2020-07-27 13:24:17 +00:00
|
|
|
- name: Kube-OVN | Label ovn-db node # noqa 305
|
2019-07-31 03:10:20 +00:00
|
|
|
shell: >-
|
|
|
|
{{ bin_dir }}/kubectl label --overwrite node {{ groups['kube-master'] | first }} kube-ovn/role=master
|
|
|
|
when:
|
|
|
|
- inventory_hostname == groups['kube-master'][0]
|
|
|
|
|
|
|
|
- name: Kube-OVN | Create Kube-OVN manifests
|
|
|
|
template:
|
|
|
|
src: "{{ item.file }}.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
|
|
|
with_items:
|
|
|
|
- {name: kube-ovn-crd, file: cni-kube-ovn-crd.yml}
|
|
|
|
- {name: ovn, file: cni-ovn.yml}
|
|
|
|
- {name: kube-ovn, file: cni-kube-ovn.yml}
|
|
|
|
register: kube_ovn_node_manifests
|