From 74d9ce61bb0b2d65043c08cd8c4711d1474219bf Mon Sep 17 00:00:00 2001 From: binary Date: Tue, 19 Jan 2021 22:44:27 +0100 Subject: Add iso download and simplify url variables --- roles/bhyve/tasks/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'roles/bhyve/tasks') diff --git a/roles/bhyve/tasks/main.yml b/roles/bhyve/tasks/main.yml index 039ba10..1b7470f 100644 --- a/roles/bhyve/tasks/main.yml +++ b/roles/bhyve/tasks/main.yml @@ -62,6 +62,12 @@ include: guest.yml guest="{{ item }}" loop: "{{ vms }}" +- name: retrieve all iso + get_url: + url: "{{ item }}" + dest: "{{ bhyve_dir }}/.iso" + loop: "{{ bhyve_iso }}" + - name: retrieve all deprecated vms find: path: "{{ bhyve_dir }}" @@ -77,5 +83,3 @@ - "{{ vms }}" - "{{ deprecated_vms.files }}" -- name: ensure all vms are started - shell: vm startall -- cgit v1.2.3