Add conditional;Inject manifests
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -53,7 +53,19 @@
|
||||
docker://{{ item }} \
|
||||
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
|
||||
chdir: /opt/metacluster/container-images
|
||||
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}"
|
||||
loop: "{{ (containerimages.results | map(attribute='stdout_lines') | flatten) + dependencies.container_images }}"
|
||||
|
||||
- name: Inject manifests
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.type }}.j2"
|
||||
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
when: item is defined
|
||||
loop: "{{ lookup('ansible.builtin.dict', components) | map(attribute='value.manifests') | list }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
|
||||
- name: Compress tarballs
|
||||
community.general.archive:
|
||||
|
Reference in New Issue
Block a user