aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/init_vm.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vmm/tasks/init_vm.yml')
-rw-r--r--roles/vmm/tasks/init_vm.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/vmm/tasks/init_vm.yml b/roles/vmm/tasks/init_vm.yml
new file mode 100644
index 0000000..4ded177
--- /dev/null
+++ b/roles/vmm/tasks/init_vm.yml
@@ -0,0 +1,26 @@
+
+# vmm ~~ tasks/init_vm.yml
+
+---
+
+- include_role:
+ name: serial
+
+- set_fact:
+
+
+- name: Init vm via script
+ script: init_vm_serial.py \
+ {{ guest }} \
+ {{ hostvars[guest].ip.out }} \
+ {{ hypervisor.gateway }} \
+ {{ hypervisor.mask }} \
+ {{ _i.dns[0] }} \
+ "{{ lookup('file', inventory_dir + '/files/pubkeys/rgoncalves.pub') }}"
+ args:
+ executable: "/usr/local/bin/python3"
+ register: rg
+
+- name: Installation result
+ debug:
+ var: rg.stdout_lines
remember that computers suck.