---
#TODO: change this if /opt/cni/bin becomes a variable for kubelet
- name: ovn-kubernetes | create cni binary folder /opt/cni/bin
  file:
    path: /opt/cni/bin
    state: directory

- name: ovn-kubernetes | get ovn-k8s-cni-overlay
  copy:
    src: "{{ansible_tmp_dir}}/ovn-k8s-cni-overlay"
    dest: "/opt/cni/bin/ovn-k8s-cni-overlay"
    owner: root
    group: root
    mode: 0755

- name: ovn-kubernetes | get ovn-kube-util
  copy:
    src: "{{ansible_tmp_dir}}/ovn-kube-util"
    dest: "{{ ovn_kubernetes_info.install_path }}/ovn-kube-util"
    owner: root
    group: root
    mode: 0755

- name: ovn-kubernetes | get ovnkube
  copy:
    src: "{{ansible_tmp_dir}}/ovnkube"
    dest: "{{ ovn_kubernetes_info.install_path }}/ovnkube"
    owner: root
    group: root
    mode: 0755
