2020-07-31 14:33:08 +00:00
|
|
|
---
|
|
|
|
- name: ovn4nfv | Label control-plane node
|
|
|
|
command: >-
|
2021-03-24 00:26:05 +00:00
|
|
|
{{ bin_dir }}/kubectl label --overwrite node {{ groups['kube_control_plane'] | first }} ovn4nfv-k8s-plugin=ovn-control-plane
|
2020-07-31 14:33:08 +00:00
|
|
|
when:
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
2020-07-31 14:33:08 +00:00
|
|
|
|
|
|
|
- name: ovn4nfv | Create ovn4nfv-k8s manifests
|
|
|
|
template:
|
|
|
|
src: "{{ item.file }}.j2"
|
|
|
|
dest: "{{ kube_config_dir }}/{{ item.file }}"
|
|
|
|
with_items:
|
|
|
|
- {name: ovn-daemonset, file: ovn-daemonset.yml}
|
|
|
|
- {name: ovn4nfv-k8s-plugin, file: ovn4nfv-k8s-plugin.yml}
|
|
|
|
register: ovn4nfv_node_manifests
|