summaryrefslogtreecommitdiff
path: root/roles/installer/openbsd/base/tasks/main.yml
blob: 0d5053d50047a2bb8960dce5b841a9ea928330b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- name: prepare directories for installer isos
  loop: "{{ openbsd_versions | subelements('arch') }}"
  loop_control:
    label: "openbsd-{{ item.0.version }} {{ item.1 }}"
  file:
    name: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}"
    state: directory

- name: download installer isos
  loop: "{{ openbsd_versions | subelements('arch') }}"
  loop_control:
    label: "openbsd-{{ item.0.version }} {{ item.1 }}"
  get_url:
    url: "{{ openbsd_installer_url }}/{{ item.0.version }}/{{ item.1 }}/install{{ item.0.version | replace('.', '') }}.iso"
    dest: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}/install.iso"
    mode: 0644
    force: "{{ openbsd_installer_force_download }}"

# TODO: verify the image using openbsd-signify

- name: install genisoimage
  apt:
    name: genisoimage
    state: present