ansible-edda/playbooks/roles/services/setup/system/tasks/include/podman.yml

27 lines
718 B
YAML

---
- name: "podman : install podman"
ansible.builtin.apt:
name: "podman"
register: services_setup_system_podman_install
- name: "podman : reboot host"
ansible.builtin.reboot:
when:
services_setup_system_podman_install.changed
- block:
- name: "podman : configure podman storage"
ansible.builtin.copy:
src: "./podman/storage.conf"
dest: "/etc/containers/storage.conf"
mode: 0644
register: services_setup_system_containers_storage
- name: "podman : reset podman"
ansible.builtin.shell: "yes | podman system reset"
when:
services_setup_system_containers_storage.changed
when:
services_setup_system_containers_storage_fuse_overlay