role-podman/tasks/install_podman.yml

33 lines
756 B
YAML

- name: Clone podman github repository
git:
repo: "{{ podman_podman_repopath }}"
dest: "{{ podman_podman_buildpath }}"
clone: yes
update: yes
version: "{{ podman_version }}"
force: true
- name: Build 'all' target with extra arguments
make:
chdir: "{{ podman_podman_buildpath }}"
target: "all"
params:
BUILDTAGS: "systemd seccomp"
- name: Build 'install' target with extra arguments
make:
chdir: "{{ podman_podman_buildpath }}"
target: install
params:
PREFIX: "/usr"
- name: Setup systemd service
ansible.builtin.template:
src: podman-docker.service
dest: /lib/systemd/system/podman-docker.service
owner: root
group: root
mode: 0644
notify:
- "Reload systemd"