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

31 lines
723 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
- 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"