Add 'installbox' configuration.

This commit is contained in:
Andreas B. Mundt 2018-05-31 18:20:51 +03:00
commit 546dabd7aa
16 changed files with 323 additions and 0 deletions

View file

@ -0,0 +1,3 @@
- name: rebuild di-netboot-assistant menu
command: di-netboot-assistant rebuild-menu
listen: rebuild di-netboot-assistant menu

View file

@ -0,0 +1,28 @@
- name: install tftp-netboot-installer packages
apt:
name:
- di-netboot-assistant
- debian-installer-9-netboot-amd64
- name: bind mount images
mount:
name: "{{ tftp_root }}/di-netboot-pkg/"
src: /usr/lib/debian-installer/
fstype: none
opts: bind
# state: mounted BEGINN WORKAROUND
state: present
register: fstab
- name: Reload fstab
command: mount -a
when: fstab.changed
# https://github.com/ansible/ansible/issues/23487 END WORKAROUND
- name: configure dnsmasq
template:
src: dnsmasq-tftp-netboot-installer.j2
dest: /etc/dnsmasq.d/tftp-netboot-installer
notify:
- restart dnsmasq
- rebuild di-netboot-assistant menu

View file

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