A project used to hold out-of-tree ironic drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
393 B

- name: fail if not enough memory to store downloaded image
fail:
msg: "The image size is too big, no free memory available"
when: "{{ ansible_memfree_mb }} < {{ image.mem_req }}"
- name: download image with checksum validation
get_url:
url: "{{ image.url }}"
dest: /tmp/{{ inventory_hostname }}.img
checksum: "{{ image.checksum|default(omit) }}"
async: 600
poll: 15