Fix bug with container_volumes
This commit is contained in:
parent
7b352e02ea
commit
86ca04bc32
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,9 @@
|
||||||
notify: Reload systemd (daemon-reload)
|
notify: Reload systemd (daemon-reload)
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
|
- name: Initialize container_volumes
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
container_volumes: "{{ podman_container_volumes }}"
|
||||||
- name: Map volumes to Podman accepted list
|
- name: Map volumes to Podman accepted list
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
container_volumes: "{{ container_volumes | default(podman_container_volumes) + ['/home/' + container_user + '/' + item.name + ':' + item.mnt] }}"
|
container_volumes: "{{ container_volumes | default(podman_container_volumes) + ['/home/' + container_user + '/' + item.name + ':' + item.mnt] }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue