aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/init_hypervisor.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-07 20:38:07 +0100
committerbinary <me@rgoncalves.se>2020-11-07 20:38:07 +0100
commit352c98322771af117a85904d580e1c062062d634 (patch)
treed3bca9d27d6ee5d678264d83fc22030d274f30bf /roles/vmm/tasks/init_hypervisor.yml
parent282be811d2ac07a76d56ac066df5bf33d748bd64 (diff)
downloadinfrastructure-352c98322771af117a85904d580e1c062062d634.tar.gz
Refactor vmm role with automation
Diffstat (limited to 'roles/vmm/tasks/init_hypervisor.yml')
-rw-r--r--roles/vmm/tasks/init_hypervisor.yml12
1 files changed, 12 insertions, 0 deletions
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"
remember that computers suck.