improved file loading
This commit is contained in:
@@ -10,15 +10,16 @@
|
||||
slurm_image_prefix: cobald
|
||||
image_name: "{{cobald_image_tag}}"
|
||||
dockerfile: "{{ lookup('template', 'cobald.Dockerfile') }}"
|
||||
files:
|
||||
- dest: cobald-entrypoint.sh
|
||||
content: "{{ lookup('file', 'cobald-entrypoint.sh') }}"
|
||||
- dest: init-cobaldmodules.sh
|
||||
content: "{{ lookup('file', 'init-cobaldmodules.sh') }}"
|
||||
- dest: start-drone
|
||||
content: "{{ lookup('file', 'start-drone') }}"
|
||||
- dest: 28-sync-container-slurmd
|
||||
content: "{{ lookup('file', '28-sync-container-slurmd') }}"
|
||||
files_list:
|
||||
- cobald-entrypoint.sh
|
||||
- init-cobaldmodules.sh
|
||||
- start-drone
|
||||
- 28-sync-container-slurmd
|
||||
files: "
|
||||
{%- set files = [] -%} {%- for i in files_list -%}
|
||||
{%- set files = files.append(
|
||||
{ 'dest': i, 'content': lookup('file', i) }) -%}
|
||||
{%- endfor %}{{ files }}"
|
||||
when: cobald_slurm | default(False)
|
||||
|
||||
- name: build generic cobald docker image
|
||||
|
Reference in New Issue
Block a user