diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/usb-generate.yml | 16 | ||||
-rw-r--r-- | common/usb-install.yml | 24 |
2 files changed, 17 insertions, 23 deletions
diff --git a/common/usb-generate.yml b/common/usb-generate.yml new file mode 100644 index 00000000..f5da253e --- /dev/null +++ b/common/usb-generate.yml @@ -0,0 +1,16 @@ +--- +- name: fetch debian installer and bake initrd + hosts: "{{ install_hostnames }}" + connection: local + gather_facts: no + + vars_prompt: + - name: usb_install_path + prompt: Where is the USB installation medium mounted to? + private: no + + roles: + - role: installer/debian/usb + install_hostname: "{{ inventory_hostname }}" + installer_base_path: "{{ global_cache_dir }}/debian-installer" + installer_keyrings_path: "{{ global_files_dir }}/common/keyrings" diff --git a/common/usb-install.yml b/common/usb-install.yml index 1776f75b..f24e0fb8 100644 --- a/common/usb-install.yml +++ b/common/usb-install.yml @@ -14,28 +14,6 @@ installer_base_path: "{{ global_cache_dir }}/debian-installer" installer_keyrings_path: "{{ global_files_dir }}/common/keyrings" - post_tasks: - - name: Make the USB disk bootable - pause: - seconds: 0 - prompt: | - You should make sure the USB disk is bootable and - has syslinux installed. - - $ sudo apt install mbr syslinux - $ sudo install-mbr /dev/CHANGEME - $ sudo syslinux -i /dev/CHANGEME1 - $ sudo fdisk /dev/CHANGEME - [Here, make sure partition 1 is marked bootable.] - - for UEFI these steps need to be done - - $ sudo apt install syslinux-efi - $ cp /usr/lib/syslinux/modules/efi64/* {{ usb_install_path }}/EFI/boot/ - $ cp /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi {{ usb_install_path }}/EFI/boot/bootx64.efi - - This will NOT be done automatically. - - name: wait for new machine to start up hosts: "{{ install_hostname }}" gather_facts: no @@ -53,7 +31,7 @@ - name: clear all gathered facts meta: clear_facts - - name: wait for vm to start up + - name: wait for host to start up wait_for_connection: delay: 5 timeout: 120 |