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