1 # SPDX-FileCopyrightText: 2021 Intel Corporation.
3 # SPDX-License-Identifier: Apache-2.0
5 - name: install dependencies
7 name: install_dependencies
9 - name: clone sriov-cni repository
11 repo: "{{ sriov_cni_url }}"
12 dest: "{{ sriov_cni_dir }}"
13 version: "{{ sriov_cni_version }}"
16 # Ignore errors as this has been failing
17 - name: build sriov-cni plugin
19 chdir: /usr/src/sriov-cni
22 # missing go.sum entry for module providing package golang.org/x/sys/unix
23 - name: Force checkout as some files change after build error
25 cmd: git checkout -- .
26 chdir: /usr/src/sriov-cni
28 - name: build sriov-cni plugin
30 chdir: /usr/src/sriov-cni
32 - name: create /opt/cni/bin
39 - name: install sriov-cni binary to /opt/cni/bin directory
41 src: /usr/src/sriov-cni/build/sriov
42 dest: /opt/cni/bin/sriov