1
0
mirror of https://git.libreschool.org/paspo/brasatore.git synced 2024-11-21 21:58:44 +00:00

playbook ansible WIP

This commit is contained in:
Paolo Asperti 2023-10-26 23:31:46 +02:00
parent 37f2b7b130
commit 491c8c701f
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,31 @@
---
- name: IPXE dnsmasq
template:
src: dnsmasq/pxe
dest: /etc/dnsmasq.d/pxe
owner: root
group: root
mode: "0644"
become: true
- name: IPXE bios firmware
ansible.builtin.file:
src: /usr/lib/ipxe/undionly.kpxe
dest: /srv/tftp/undionly.kpxe
state: link
become: true
- name: IPXE efi firmware
ansible.builtin.file:
src: /usr/lib/ipxe/ipxe.efi
dest: /srv/tftp/ipxe.efi
state: link
become: true
- name: IPXE memdisk
ansible.builtin.file:
src: /usr/lib/syslinux/memdisk
dest: /srv/pxe/memdisk
state: link
become: true

View File

@ -6,3 +6,4 @@
- include: nfs.yml
- include: firewall.yml
- include: iso.yml
- include: ipxe.yml

View File

@ -0,0 +1,5 @@
dhcp-match=set:bios,option:client-arch,0
dhcp-boot=tag:bios,undionly.kpxe
dhcp-boot=tag:!bios,ipxe.efi
dhcp-match=ipxe,175
dhcp-boot=net:ipxe,http://{{ lan_ip }}/boot.txt