role-podman/tasks/install_netavark.yml
2023-09-13 23:40:39 +02:00

31 lines
723 B
YAML

- name: Clone netavark github repository
git:
repo: "{{ podman_netavark_repopath }}"
dest: "{{ podman_netavark_buildpath }}"
clone: yes
update: yes
version: "{{ podman_netavark_version }}"
force: true
- name: Build 'all' target with extra arguments
make:
chdir: "{{ podman_netavark_buildpath }}"
target: "all"
params:
NUM_THREADS: 4
BACKEND: lapack
- name: "Create podman folder"
file:
path: "/usr/libexec/podman"
state: directory
mode: '755'
- name: Copy netavark file
ansible.builtin.copy:
src: "{{ podman_netavark_buildpath }}/bin/netavark"
dest: "/usr/libexec/podman/netavark"
force: true
remote_src: true
mode: u=rx,g=rx,o=rx