Optimize node template handling
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-08-04 08:55:50 +02:00
parent 3d96f8c13b
commit fc51bf3f94
2 changed files with 7 additions and 5 deletions

View File

@ -15,7 +15,7 @@
- name: Download node-template images
ansible.builtin.uri:
url: "{{ item.url }}"
dest: /opt/workloadcluster/node-templates/{{ item.name }}
loop: "{{ downstream.node_templates }}"
dest: /opt/workloadcluster/node-templates/{{ downstream.node_templates.prefix }}{{ item.name }}
loop: "{{ downstream.node_templates.images }}"
loop_control:
label: "{{ item.name }}"
label: "{{ downstream.node_templates.prefix }}{{ item.name }}"

View File

@ -1,5 +1,7 @@
downstream:
node_templates:
- url: https://stable.release.flatcar-linux.net/amd64-usr/3227.2.0/flatcar_production_vmware_ova.ova
name: flatcar.ova
prefix: NodeTmpl_
images:
- url: https://stable.release.flatcar-linux.net/amd64-usr/3227.2.0/flatcar_production_vmware_ova.ova
name: flatcar.ova