move async image download entirely within config-virt
diff --git a/roles/config-virt/tasks/main.yml b/roles/config-virt/tasks/main.yml
index ad790a2..da7b239 100644
--- a/roles/config-virt/tasks/main.yml
+++ b/roles/config-virt/tasks/main.yml
@@ -1,5 +1,5 @@
---
-# roles/config-virt-net/tasks/main.yml
+# roles/config-virt/tasks/main.yml
- name: Get ubuntu image for uvtool
command: uvt-simplestreams-libvirt sync --source http://cloud-images.ubuntu.com/daily \
@@ -60,3 +60,9 @@
- reload libvirt-bin
- run qemu hook
+- name: Wait for uvt-kvm image to be available
+ async_status: jid={{ uvt_sync.ansible_job_id }}
+ register: uvt_sync_result
+ until: uvt_sync_result.finished
+ delay: 10
+ retries: 120
diff --git a/roles/create-vms/tasks/main.yml b/roles/create-vms/tasks/main.yml
index f75501a..5c42a20 100644
--- a/roles/create-vms/tasks/main.yml
+++ b/roles/create-vms/tasks/main.yml
@@ -1,13 +1,6 @@
---
# file: create-vms/tasks/main.yml
-- name: Wait for uvt-kvm image to be available
- async_status: jid={{ uvt_sync.ansible_job_id }}
- register: uvt_sync_result
- until: uvt_sync_result.finished
- delay: 10
- retries: 120
-
- name: create Virtual Machines with uvt-kvm
shell: uvt-kvm create {{ item.name }} release={{ ansible_distribution_release }} \
--cpu={{ item.cpu }} --memory={{ item.memMB }} --disk={{ item.diskGB }} --bridge="mgmtbr"