54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
---
|
|
- name: install packages
|
|
apt:
|
|
name:
|
|
- live-build
|
|
state: latest # noqa package-latest
|
|
|
|
- name: prepare live-build directory
|
|
file:
|
|
path: /opt/live-build/
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: copy build script
|
|
template:
|
|
src: livebuilder.sh
|
|
dest: /usr/local/sbin/
|
|
mode: 0755
|
|
|
|
- name: copy live-build configuration
|
|
copy:
|
|
src: gnome-edu
|
|
dest: /opt/live-build/
|
|
local_follow: false
|
|
notify: build image
|
|
|
|
- name: prepare debian live boot loader ipxe
|
|
blockinfile:
|
|
path: /etc/di-netboot-assistant/ipxemenu.HEAD
|
|
marker: "# {mark} ANSIBLE MANAGED BLOCK gnome-edu"
|
|
block: |
|
|
:gnome-edu
|
|
echo Booting Debian GNU/Linux EDU LIVE
|
|
kernel ${210:string}d-i/n-live/gnome-edu/live/vmlinuz \
|
|
initrd=initrd.img-5.10.0-13-amd64 {{ boot_params|join(' ') }} \
|
|
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/gnome-edu/
|
|
initrd ${210:string}d-i/n-live/gnome-edu/live/initrd.img
|
|
boot
|
|
notify: rebuild di-netboot menu
|
|
|
|
- name: prepare debian live boot loader grub
|
|
blockinfile:
|
|
path: /etc/di-netboot-assistant/grub.cfg.HEAD
|
|
insertbefore: "^menuentry 'Boot from local disk..'"
|
|
marker: "# {mark} ANSIBLE MANAGED BLOCK gnome-edu"
|
|
block: |
|
|
menuentry 'Debian GNU/Linux Live gnome-edu' {
|
|
linux (http,{{ ansible_default_ipv4.address }})/d-i/n-live/gnome-edu/live/vmlinuz \
|
|
{{ boot_params|join(' ') }} \
|
|
nfsroot={{ ansible_default_ipv4.address }}:/var/lib/tftpboot/d-i/n-live/gnome-edu/
|
|
initrd (http,{{ ansible_default_ipv4.address }})/d-i/n-live/gnome-edu/live/initrd.img
|
|
}
|
|
notify: rebuild di-netboot menu
|
|
|