Use variable for installer version.
This commit is contained in:
parent
e51f6c5e2d
commit
8118b980ec
2 changed files with 6 additions and 5 deletions
|
@ -14,7 +14,8 @@
|
|||
tftp_root: "/var/lib/tftpboot"
|
||||
deb_mirror: "deb.debian.org"
|
||||
di_dist: "buster"
|
||||
di_pkg: debian-installer-10-netboot-amd64
|
||||
di_version: "10"
|
||||
di_pkg: "debian-installer-{{ di_version }}-netboot-amd64"
|
||||
ansible_user: ansible
|
||||
repo_dir: "/home/{{ ansible_user }}/kiosk"
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
TIMEOUT 100
|
||||
LABEL autoinstall
|
||||
MENU LABEL Debian {{ di_dist }} (amd64) + preseed
|
||||
kernel ::/d-i/n-pkg/images/9/amd64/text/debian-installer/amd64/linux
|
||||
append initrd=::/d-i/n-pkg/images/9/amd64/text/debian-installer/amd64/initrd.gz --- auto=true priority=critical url=tftp://{{ hostname }}
|
||||
kernel ::/d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/linux
|
||||
append initrd=::/d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/initrd.gz --- auto=true priority=critical url=tftp://{{ hostname }}
|
||||
notify: "rebuild di-netboot-assistant menu"
|
||||
|
||||
- name: add auto efi boot entry to di-netboot-assistant
|
||||
|
@ -33,7 +33,7 @@
|
|||
insertbefore: EOF
|
||||
block: |
|
||||
menuentry 'Debian stable (amd64) + preseed' {
|
||||
linux /d-i/n-pkg/images/9/amd64/text/debian-installer/amd64/linux --- auto=true priority=critical url=tftp://{{ hostname }}
|
||||
initrd /d-i/n-pkg/images/9/amd64/text/debian-installer/amd64/initrd.gz
|
||||
linux /d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/linux --- auto=true priority=critical url=tftp://{{ hostname }}
|
||||
initrd /d-i/n-pkg/images/{{ di_version }}/amd64/text/debian-installer/amd64/initrd.gz
|
||||
}
|
||||
notify: "rebuild di-netboot-assistant menu"
|
||||
|
|
Loading…
Add table
Reference in a new issue