lmn-client/livebox.yml
2023-02-07 19:18:57 +01:00

67 lines
1.9 KiB
YAML

## This playbook deploys the LiveBox.
##
## The LiveBox provides Debian Live and Installer images on top
## of an already existing network with minimal modifications to
## existing infrastructure. It does not provide DHCP; the idea
## is to chainload the LiveBox' menu (iPXE or Grub) from PXE
## infrastructure already in place.
##
## To chainload the LiveBox in iPXE use:
## > item livebox Chainload Menu from LiveBox
## > …
## > :livebox chain tftp://livebox.lan/d-i/n-a/menu.ipxe
##
## To chainload the LiveBox in Grub use:
## > menuentry 'Chainload Menu from LiveBox' {
## > configfile (tftp,livebox.lan)/d-i/n-a/grub/grub.cfg
## > }
---
- name: apply configuration to the livebox
hosts: all
remote_user: ansible
become: true
vars:
extra_pkgs:
- lighttpd
- nfs-kernel-server
extra_pkgs_bpo:
- atftpd
- di-netboot-assistant
live_images:
- iso: 'debian-live-11.3.0-amd64-gnome+nonfree.iso'
name: 'gnome'
- iso: 'debian-live-11.3.0-amd64-kde+nonfree.iso'
name: 'kde'
- iso: 'debian-live-11.3.0-amd64-standard+nonfree.iso'
name: 'standard-cli'
live_url: 'https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/11.3.0-live+nonfree/amd64/iso-hybrid/'
di_dist: "{{ ansible_distribution_release }}"
di_version: "{{ ansible_distribution_major_version }}"
di_pkg: "debian-installer-{{ di_version }}-netboot-amd64"
boot_params:
- boot=live
- netboot=nfs
- components
- locales=de_DE.UTF-8
- keyboard-layouts=de
- quiet
- splash
# - noroot
ansible_python_interpreter: "/usr/bin/python3"
pre_tasks:
- name: preseed atftpd
debconf:
name: atftpd
question: atftpd/basedir
value: /var/lib/tftpboot
vtype: string
roles:
- up2date_debian
- netbootinstaller
- aptcacher
- debianlive