summaryrefslogtreecommitdiff
path: root/roles/vm/guest/install/tasks/installer-openbsd.yml
blob: 2707339d2bdc83ffbf7aa279c4ef396b91f29dc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
## this file is sourced using import_task and all task are therefore delegated to the vm-host
- name: fetch openbsd installer files
  vars:
    installer_base_path: "{{ hostvars[vm_host.name].installer_base_path }}"
    openbsd_installer_version: "{{ install_codename }}"
    openbsd_installer_arch: "{{ install.arch | default('amd64') }}"
  import_role:
    name: installer/openbsd/fetch

- name: generate host specific autoinstall iso
  vars:
    openbsd_installer_version: "{{ install_codename }}"
    obsd_autoinstall_orig_iso: "{{ hostvars[vm_host.name].installer_base_path }}/openbsd-{{ install_codename }}/{{ install.arch | default('amd64') }}/install{{ openbsd_installer_version_short }}.iso"
    obsd_autoinstall_tmpdir: "{{ vm_install_tmpdir.path }}"
    obsd_autoinstall_version: "{{ install_codename }}"
    obsd_autoinstall_arch: "{{ install.arch | default('amd64') }}"
    obsd_autoinstall_serial_device: com0
    install_interface: vio0
  import_role:
    name: installer/openbsd/autoinstall