We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c306122 commit 136edcfCopy full SHA for 136edcf
tasks/volumes.yml
@@ -9,10 +9,11 @@
9
10
- name: Ensure local images are copied
11
copy:
12
- src: "{{ item }}"
13
- dest: "{{ libvirt_vm_image_cache_path }}/{{ item | basename }}"
14
- with_items: "{{ volumes | selectattr('image', 'defined') | map(attribute='image') | list }}"
15
- when: "'http' not in item"
+ src: "{{ item.image }}"
+ dest: "{{ libvirt_vm_image_cache_path }}/{{ item.image | basename }}"
+ checksum: "{{ item.checksum | default(omit) }}"
+ with_items: "{{ volumes | selectattr('image', 'defined') | list }}"
16
+ when: "'http' not in item.image"
17
18
- name: Ensure the VM disk volumes exist
19
script: >
0 commit comments