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 8d8c78c commit c306122Copy full SHA for c306122
tasks/volumes.yml
@@ -1,10 +1,11 @@
1
---
2
- name: Ensure remote images are downloaded
3
get_url:
4
- url: "{{ item }}"
5
- dest: "{{ libvirt_vm_image_cache_path }}/{{ item | basename }}"
6
- with_items: "{{ volumes | selectattr('image', 'defined') | map(attribute='image') | list }}"
7
- when: "'http' in item"
+ url: "{{ item.image }}"
+ dest: "{{ libvirt_vm_image_cache_path }}/{{ item.image | basename }}"
+ checksum: "{{ item.checksum | default(omit) }}"
+ with_items: "{{ volumes | selectattr('image', 'defined') | list }}"
8
+ when: "'http' in item.image"
9
10
- name: Ensure local images are copied
11
copy:
0 commit comments