role-podman/tasks/install_podman.yml

31 lines
723 B
YAML
Raw Normal View History

2023-09-08 20:41:09 +00:00
- name: Clone podman github repository
git:
repo: "{{ podman_podman_repopath }}"
dest: "{{ podman_podman_buildpath }}"
clone: yes
update: yes
version: "{{ podman_version }}"
2023-09-11 20:23:53 +00:00
force: true
2023-09-08 20:41:09 +00:00
- 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"