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

29 lines
818 B
YAML
Raw Normal View History

2022-12-18 23:43:40 +01:00
---
2022-12-12 23:49:20 +01:00
- name: "podman : install podman"
ansible.builtin.apt:
name: "podman"
register: services_setup_system_podman_install
2022-12-12 23:49:20 +01:00
- name: "podman : reboot host"
ansible.builtin.reboot:
when:
services_setup_system_podman_install.changed
2023-09-30 23:44:56 +02:00
- 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
2023-11-04 21:19:09 +01:00
# Do NOT set pipefail for `yes` since it has infinite output.
tags: "skip_ansible_lint"
2023-09-30 23:44:56 +02:00
when:
services_setup_system_containers_storage_fuse_overlay