diff options
Diffstat (limited to 'roles/hyperv/tasks')
-rw-r--r-- | roles/hyperv/tasks/convert.yml | 3 | ||||
-rw-r--r-- | roles/hyperv/tasks/main.yml | 2 | ||||
-rw-r--r-- | roles/hyperv/tasks/release.yml | 6 |
3 files changed, 7 insertions, 4 deletions
diff --git a/roles/hyperv/tasks/convert.yml b/roles/hyperv/tasks/convert.yml index 99af9c1..7d118f7 100644 --- a/roles/hyperv/tasks/convert.yml +++ b/roles/hyperv/tasks/convert.yml @@ -1,5 +1,2 @@ - name: Convert raw to vhd command: qemu-img convert -f raw "{{ vyos_raw_img }}" -O vpc "{{ vyos_hyperv_img }}" -- name: Copy image - become: false - command: cp "{{ vyos_hyperv_img }}" . diff --git a/roles/hyperv/tasks/main.yml b/roles/hyperv/tasks/main.yml index 611a6d3..e857382 100644 --- a/roles/hyperv/tasks/main.yml +++ b/roles/hyperv/tasks/main.yml @@ -4,4 +4,4 @@ - include_tasks: build_image.yml - include_tasks: unmount.yml - include_tasks: convert.yml - +- include_tasks: release.yml diff --git a/roles/hyperv/tasks/release.yml b/roles/hyperv/tasks/release.yml new file mode 100644 index 0000000..4ad34c6 --- /dev/null +++ b/roles/hyperv/tasks/release.yml @@ -0,0 +1,6 @@ +- name: Release image + become: false + copy: + src: "{{ vyos_hyperv_img }}" + dest: "{{ vyos_images_dir }}/vyos-{{ version_string.stdout }}-hyperv.vhd" + when: vyos_images_dir is defined |