role-podman/tasks/install_podman.yml

32 lines
740 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 }}"
- 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"