container: fix template mounts

This commit is contained in:
uumas
2023-02-03 06:50:22 +02:00
parent 88e32f216a
commit 5204ee38c2

View File

@@ -57,7 +57,7 @@
loop: "{{ docker_volumes }}" loop: "{{ docker_volumes }}"
- name: Set docker_volume_definition for template mounts - name: Set docker_volume_definition for template mounts
set_fact: set_fact:
docker_volume_definition: "{{ docker_volume_definition + [{'source': docker_mounts_dir + '/' + item.template, 'target': item.path, 'read_only': true}] }}" docker_volume_definition: "{{ docker_volume_definition + [{'source': docker_mounts_dir + '/' + item.template, 'target': item.path, 'type': 'bind', 'read_only': true}] }}"
when: item.template is defined when: item.template is defined
loop: "{{ docker_volumes }}" loop: "{{ docker_volumes }}"