From 352c98322771af117a85904d580e1c062062d634 Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 7 Nov 2020 20:38:07 +0100 Subject: Refactor vmm role with automation --- roles/vmm/tasks/init_hypervisor.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/vmm/tasks/init_hypervisor.yml (limited to 'roles/vmm/tasks/init_hypervisor.yml') diff --git a/roles/vmm/tasks/init_hypervisor.yml b/roles/vmm/tasks/init_hypervisor.yml new file mode 100644 index 0000000..c963bbb --- /dev/null +++ b/roles/vmm/tasks/init_hypervisor.yml @@ -0,0 +1,12 @@ + +# vmm ~~ tasks/init_hypervisor.yml + +--- + +- include_tasks: download_iso.yml + vars: + iso="{{ item.name }}" + with_items: "{{ vmm.iso }}" + +- include: generate_vmconf.yml guest="{{ item }}" + loop: "{{ hostvars[ansible_host] }}.vm.hosts" -- cgit v1.2.3