From b8e0b8a6bf8fb3e879d0cd2d453e54f16a62a75e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 24 Dec 2019 13:53:37 +0100 Subject: installer: move bootstrap roles to common subdir --- roles/installer/openbsd/tasks/main.yml | 42 ---------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 roles/installer/openbsd/tasks/main.yml (limited to 'roles/installer/openbsd/tasks/main.yml') diff --git a/roles/installer/openbsd/tasks/main.yml b/roles/installer/openbsd/tasks/main.yml deleted file mode 100644 index fcc79589..00000000 --- a/roles/installer/openbsd/tasks/main.yml +++ /dev/null @@ -1,42 +0,0 @@ -- 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 }}/cd{{ item.0.version | replace('.', '') }}.iso" - dest: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}/cd-orig.iso" - mode: 0644 - force: "{{ openbsd_installer_force_download }}" - -- name: install geniosimage - apt: - name: geniosimage - state: present - -## TODO -# - iso_extract from cd-orig.iso -> <>/<>/{boot.catalog,cdbr,cdboot,bsd.rd}, etc/boot.conf -# - add lines to etc/boot.conf -> stty com0 115200, set tty com0 -# - generate etc/auto_install.conf -# - name: generate host specific installer image -# loop: "{{ openbsd_versions | subelements('arch') }}" -# loop_control: -# label: "openbsd-{{ item.0.version }} {{ item.1 }}" -# command: 'genisoimage -RTLldDN -o "cd-{{ ansible_nodename }}.iso" -no-emul-boot -b "{{ item.0.version }}/{{ item.1 }}/cdbr" -c "{{ item.0.version }}/{{ item.1 }}/boot.catalog" data-{{ ansible_nodename }}/' -# args: -# chdir: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}" -# -# - print instructions -# * attach to console -# * select (S)hell -# * # mount_cd9660 /dev/cd0c /mnt -# * # cp /mnt/etc/auto_install.conf / -# * # autoinstall -# -- cgit v1.2.3