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

23 lines
808 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.j2"
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
become_user: "{{ services_service_user_name }}"