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.
 
 
ironic-staging-drivers/ironic_staging_drivers/ansible/playbooks/roles/deploy/tasks/write.yaml

19 lines
478 B

- name: convert and write
become: yes
command: qemu-img convert -t directsync -O host_device /tmp/{{ inventory_hostname }}.img {{ ironic_image_target }}
async: 400
poll: 10
when: "{{ image.disk_format != 'raw' }}"
- name: stream to target
become: yes
stream_url:
url: "{{ image.url }}"
dest: "{{ ironic_image_target }}"
checksum: "{{ image.checksum }}"
async: 600
poll: 15
when: "{{ image.disk_format == 'raw' }}"
- name: flush
command: sync