73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
---
|
|
- name: Add FAI apt key
|
|
apt_key:
|
|
id: B11EE3273F6B2DEB528C93DA2BF8D9FE074BCDE4
|
|
state: present
|
|
url: https://fai-project.org/download/2BF8D9FE074BCDE4.asc
|
|
become: yes
|
|
|
|
- name: Add FAI apt repository
|
|
apt_repository:
|
|
state: present
|
|
repo: deb http://fai-project.org/download buster koeln
|
|
filename: fai
|
|
update_cache: yes
|
|
become: yes
|
|
|
|
- name: Install FAI via apt
|
|
apt:
|
|
state: latest
|
|
name: fai-server
|
|
install_recommends: yes
|
|
force_apt_get: yes
|
|
become: yes
|
|
|
|
- name: Define packages installed in NFSROOT
|
|
blockinfile:
|
|
state: present
|
|
path: /etc/fai/NFSROOT
|
|
backup: yes
|
|
marker: "# {mark}"
|
|
marker_begin: "BEGIN MANAGED BY PLANTROON"
|
|
marker_end: "END MANAGED BY PLANTROON"
|
|
insertafter: '^PACKAGES install-norec FULL'
|
|
block: |
|
|
cryptsetup
|
|
become: yes
|
|
|
|
# THIS DOES NOT WORK DUE TO BUGS IN FAI/DRACUT
|
|
# NFS SERVER MUST BE THE SAME AS DHCP SERVER
|
|
# IF SPECIFIED HERE, FAI BUGS OUt
|
|
# HOLY FUCK
|
|
# FAI SUCKS
|
|
# I LOST IT
|
|
#- name: Use nfsroot= with IP
|
|
# blockinfile:
|
|
# state: present
|
|
# path: /etc/fai/nfsroot.conf
|
|
|
|
- name: Some FAI configuration
|
|
copy:
|
|
src: etc/fai/apt/sources.list
|
|
dest: /etc/fai/apt/sources.list
|
|
force: yes
|
|
mode: preserve
|
|
become: yes
|
|
|
|
#- name: Setup/rebuild FAI NFSROOT
|
|
# shell: fai-setup -v -f
|
|
# become: yes
|
|
|
|
#- name: Setup/rebuild FAI debmirror
|
|
# shell: fai-mirror -v /srv/debmirror
|
|
# become: yes
|
|
|
|
- name: Copy FAI config space
|
|
copy:
|
|
src: config/
|
|
dest: /srv/fai/config/
|
|
force: yes
|
|
mode: preserve
|
|
become: yes
|
|
|