# SPDX-FileCopyrightText: 2021 Intel Corporation. # # SPDX-License-Identifier: Apache-2.0 --- - name: install dependencies include_role: name: install_dependencies - name: clone sriov-cni repository git: repo: "{{ sriov_cni_url }}" dest: "{{ sriov_cni_dir }}" version: "{{ sriov_cni_version }}" force: yes # Ignore errors as this has been failing - name: build sriov-cni plugin make: chdir: /usr/src/sriov-cni ignore_errors: true # missing go.sum entry for module providing package golang.org/x/sys/unix - name: Force checkout as some files change after build error shell: cmd: git checkout -- . chdir: /usr/src/sriov-cni - name: build sriov-cni plugin make: chdir: /usr/src/sriov-cni - name: create /opt/cni/bin file: path: "/opt/cni/bin" state: directory recurse: yes mode: 0755 - name: install sriov-cni binary to /opt/cni/bin directory copy: src: /usr/src/sriov-cni/build/sriov dest: /opt/cni/bin/sriov mode: 0755 remote_src: yes