25 lines
905 B
YAML
25 lines
905 B
YAML
---
|
|
- block:
|
|
|
|
- name: "{{ services_service_name }} : podman : create container configuration directory"
|
|
ansible.builtin.file:
|
|
path: "{{ services_service_user_home }}/.config/containers"
|
|
state: "directory"
|
|
mode: 0755
|
|
|
|
- name: "{{ services_service_name }} : podman : configure podman storage"
|
|
ansible.builtin.template:
|
|
src: "./podman/storage.conf"
|
|
dest: "{{ services_service_user_home }}/.config/containers/storage.conf"
|
|
mode: 0644
|
|
register: services_setup_user_containers_storage
|
|
|
|
- name: "{{ services_service_name }} : podman : reset podman"
|
|
ansible.builtin.shell: "cd $HOME; yes | podman system reset"
|
|
when:
|
|
services_setup_user_containers_storage.changed
|
|
# Do NOT set pipefail for `yes` since it has infinite output.
|
|
tags: "skip_ansible_lint"
|
|
|
|
become_user: "{{ services_service_user_name }}"
|