mirror of
https://git.libreschool.org/paspo/brasatore.git
synced 2024-12-22 05:33:43 +00:00
playbook ansible WIP
This commit is contained in:
parent
37f2b7b130
commit
491c8c701f
31
roles/pxeserver/tasks/ipxe.yml
Normal file
31
roles/pxeserver/tasks/ipxe.yml
Normal 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
|
@ -6,3 +6,4 @@
|
||||
- include: nfs.yml
|
||||
- include: firewall.yml
|
||||
- include: iso.yml
|
||||
- include: ipxe.yml
|
||||
|
5
roles/pxeserver/templates/dnsmasq/pxe
Normal file
5
roles/pxeserver/templates/dnsmasq/pxe
Normal 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
|
Loading…
Reference in New Issue
Block a user