service: Add support for mounting entire copied directory
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user