2022-12-18 23:43:40 +01:00
|
|
|
---
|
2022-12-11 00:41:50 +01:00
|
|
|
- block:
|
|
|
|
|
2022-12-12 23:49:20 +01:00
|
|
|
- name: "{{ services_service_name }} : podman : create container configuration directory"
|
2022-12-11 00:41:50 +01:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ services_service_user_home }}/.config/containers"
|
|
|
|
state: "directory"
|
|
|
|
mode: 0755
|
|
|
|
|
2022-12-12 23:49:20 +01:00
|
|
|
- name: "{{ services_service_name }} : podman : configure podman storage"
|
2022-12-11 00:41:50 +01:00
|
|
|
ansible.builtin.template:
|
2023-07-08 10:04:37 +02:00
|
|
|
src: "./podman/storage.conf"
|
2022-12-11 00:41:50 +01:00
|
|
|
dest: "{{ services_service_user_home }}/.config/containers/storage.conf"
|
|
|
|
mode: 0644
|
2022-12-14 21:19:05 +01:00
|
|
|
register: services_setup_user_containers_storage
|
2022-12-11 00:41:50 +01:00
|
|
|
|
2022-12-12 23:49:20 +01:00
|
|
|
- name: "{{ services_service_name }} : podman : reset podman"
|
2022-12-11 00:41:50 +01:00
|
|
|
ansible.builtin.shell: "cd $HOME; yes | podman system reset"
|
|
|
|
when:
|
2022-12-14 21:19:05 +01:00
|
|
|
services_setup_user_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"
|
2022-12-11 00:41:50 +01:00
|
|
|
|
|
|
|
become_user: "{{ services_service_user_name }}"
|