Add 'installbox' configuration.
This commit is contained in:
commit
546dabd7aa
16 changed files with 323 additions and 0 deletions
3
roles/tftp-netboot-installer/handlers/main.yml
Normal file
3
roles/tftp-netboot-installer/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: rebuild di-netboot-assistant menu
|
||||
command: di-netboot-assistant rebuild-menu
|
||||
listen: rebuild di-netboot-assistant menu
|
28
roles/tftp-netboot-installer/tasks/main.yml
Normal file
28
roles/tftp-netboot-installer/tasks/main.yml
Normal 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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue