blob: ab0dc52f451fa44662e5114cf58647e67ba0433e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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
|