29 lines
818 B
YAML
29 lines
818 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
|
|
# Do NOT set pipefail for `yes` since it has infinite output.
|
|
tags: "skip_ansible_lint"
|
|
|
|
when:
|
|
services_setup_system_containers_storage_fuse_overlay
|