summaryrefslogtreecommitdiff
path: root/roles/vm/install/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vm/install/tasks/main.yml')
-rw-r--r--roles/vm/install/tasks/main.yml25
1 files changed, 22 insertions, 3 deletions
diff --git a/roles/vm/install/tasks/main.yml b/roles/vm/install/tasks/main.yml
index 162ece24..20484401 100644
--- a/roles/vm/install/tasks/main.yml
+++ b/roles/vm/install/tasks/main.yml
@@ -28,16 +28,26 @@
state: directory
register: tmpdir
- - import_role:
- name: preseed
+ - when: install_distro in ['debian', 'ubuntu']
vars:
ssh_keys_root: "{{ hostvars[hostname].ssh_keys_root }}"
preseed_tmpdir: "{{ tmpdir.path }}"
preseed_force_net_ifnames_policy: path
preseed_no_netplan: yes
install_interface: enp1s1
+ import_role:
+ name: installer/debian/preseed
+
+ - when: install_distro in ['openbsd']
+ vars:
+ ssh_keys_root: "{{ hostvars[hostname].ssh_keys_root }}"
+ obsd_autoinstall_tmpdir: "{{ tmpdir.path }}"
+ obsd_autoinstall_serial_device: com0
+ install_interface: vio0
+ import_role:
+ name: installer/openbsd/autoinstall
- - name: Make preseed workdir readable by qemu
+ - name: Make installer workdir readable by qemu
acl:
path: "{{ tmpdir.path }}"
state: present
@@ -54,6 +64,15 @@
- debug:
msg: "you can check on the status of the installer running this command 'virsh console {{ hostname }}' on host {{ inventory_hostname }}."
+ - when: installer_manual_steps_msg is defined
+ pause:
+ prompt: |
+ Mind that this installer needs manual steps to be performed:
+
+ {{ installer_manual_steps_msg | indent(2) }}
+
+ When done press enter to continue or Ctrl-C + 'A' to abort.
+
- name: wait for installer to finish or crash
wait_for_virt:
name: "{{ hostname }}"