service: Add support for mounting entire copied directory

This commit is contained in:
uumas
2026-01-09 17:24:01 +02:00
parent b2540e2bd3
commit b030d671b5
6 changed files with 79 additions and 7 deletions

View File

@@ -19,3 +19,9 @@
msg: "Template mount source file name needs to end in .j2. The file {{ item.source }} of {{ service_name }} doesn't."
when: "item.source | split('.') | last != 'j2'"
loop: "{{ _service_template_mounts }}"
- name: Fail if copy mount source doesn't end with /
ansible.builtin.fail:
msg: "Copy mount source name must end with /. The file {{ item.source }} of {{ service_name }} doesn't"
when: "not item.source.endswith('/')"
loop: "{{ _service_copy_mounts }}"