Update/fix 'installbox' configuration.

This commit is contained in:
Andreas B. Mundt 2018-06-04 18:00:25 +03:00
parent b1af7d31ec
commit e37f9fa03d
7 changed files with 55 additions and 27 deletions

View file

@ -1,3 +1,6 @@
- name: rebuild di-netboot-assistant menu
command: di-netboot-assistant rebuild-menu
command: "{{ item }}"
with_items:
- di-netboot-assistant rebuild-menu
- di-netboot-assistant rebuild-grub
listen: rebuild di-netboot-assistant menu

View file

@ -1,12 +1,23 @@
- name: install tftp-netboot-installer packages
- name: add stretch-backports
apt_repository:
repo: deb http://deb.debian.org/debian/ stretch-backports main
state: present
- name: install di-netboot-assistant from backports
apt:
name:
- di-netboot-assistant
default_release: stretch-backports
update_cache: yes
- name: add installer package
apt:
name:
- debian-installer-9-netboot-amd64
- name: bind mount images
mount:
name: "{{ tftp_root }}/di-netboot-pkg/"
path: "{{ tftp_root }}/d-i/n-pkg/"
src: /usr/lib/debian-installer/
fstype: none
opts: bind
@ -14,6 +25,8 @@
state: present
register: fstab
- file: path="{{ tftp_root }}/d-i/n-pkg/" state=directory recurse=yes
- name: Reload fstab
command: mount -a
when: fstab.changed

View file

@ -1,5 +1,5 @@
enable-tftp
tftp-root={{ tftp_root }}
dhcp-boot=debian-installer/pxelinux.0
dhcp-boot=d-i/n-a/pxelinux.0
dhcp-match=set:efi-x86_64,option:client-arch,7
dhcp-boot=tag:efi-x86_64,debian-installer/bootnetx64.efi
dhcp-boot=tag:efi-x86_64,d-i/n-a/bootnetx64.efi