summaryrefslogtreecommitdiff
path: root/roles/installer/debian/usb
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-07-20 22:34:01 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-07-20 22:34:01 +0200
commit7ff35ec95420023d323e394162cd124029ea7161 (patch)
tree773e57a25d74490da230c4a605a978d76d9c6c51 /roles/installer/debian/usb
parentriot is now called element (diff)
make debian installer fetch more generic
Diffstat (limited to 'roles/installer/debian/usb')
-rw-r--r--roles/installer/debian/usb/tasks/main.yml38
1 files changed, 19 insertions, 19 deletions
diff --git a/roles/installer/debian/usb/tasks/main.yml b/roles/installer/debian/usb/tasks/main.yml
index 6220b02b..40846f13 100644
--- a/roles/installer/debian/usb/tasks/main.yml
+++ b/roles/installer/debian/usb/tasks/main.yml
@@ -11,18 +11,18 @@
that: usb_install_mountpoint.stat.exists
msg: the path to the usb drive does not exist
-- block:
- - name: download installer
- vars:
- debian_installer_distro: "{{ install_distro }}"
- debian_installer_codename: "{{ install_codename }}"
- debian_installer_arch: "{{ install.arch | default('amd64') }}"
- debian_installer_variant: netboot
- run_once: true
- import_role:
- role: installer/debian/fetch
+- name: download installer
+ vars:
+ debian_installer_distro: "{{ install_distro }}"
+ debian_installer_codename: "{{ install_codename }}"
+ debian_installer_arch: "{{ install.arch | default('amd64') }}"
+ debian_installer_variant: netboot
+ run_once: true
+ import_role:
+ role: installer/debian/fetch
- - name: Create temporary workdir
+- block:
+ - name: create temporary workdir
tempfile:
prefix: "usb-install.{{ install_hostname }}."
state: directory
@@ -30,30 +30,30 @@
- name: generate pressed file
vars:
- preseed_orig_initrd: "{{ installer_base_path }}/{{ install_distro }}-{{ install_codename }}/{{ hostvars[install_hostname].install_cooked.arch | default('amd64') }}-netboot/initrd.gz"
+ preseed_orig_initrd: "{{ debian_installer_target_dir }}/initrd.gz"
preseed_tmpdir: "{{ tmpdir.path }}"
import_role:
name: installer/debian/preseed
- - name: Copy the preseed initramfs to the usb drive
+ - name: copy the preseed initramfs to the usb drive
copy:
src: "{{ tmpdir.path }}/initrd.{{ install_hostname }}.gz"
dest: "{{ usb_install_path }}/initrd.{{ install_hostname }}.gz"
always:
- - name: Cleanup temporary workdir
+ - name: cleanup temporary workdir
when: tmpdir.path is defined
file:
path: "{{ tmpdir.path }}"
state: absent
-- name: Copy linux kernel image to the USB drive
+- name: copy linux kernel image to the USB drive
run_once: true
copy:
- src: "{{ global_cache_dir }}/debian-installer/{{ install_distro }}-{{ install_codename }}/{{ install.arch | default('amd64') }}-{{ debian_installer_variant }}/linux"
+ src: "{{ debian_installer_target_dir }}/linux"
dest: "{{ usb_install_path }}/"
-- name: Generate syslinux configuration for BIOS boot
+- name: generate syslinux configuration for BIOS boot
run_once: true
vars:
syslinux_base_path: ""
@@ -67,7 +67,7 @@
path: "{{ usb_install_path }}/EFI/boot"
state: directory
-- name: Generate syslinux configuration for UEFI boot
+- name: generate syslinux configuration for UEFI boot
run_once: true
vars:
syslinux_base_path: "../../"
@@ -75,7 +75,7 @@
src: syslinux.cfg.j2
dest: "{{ usb_install_path }}/EFI/boot/syslinux.cfg"
-- name: Make the USB disk bootable
+- name: make the USB disk bootable
pause:
seconds: 0
prompt: |