29 lines
756 B
YAML
29 lines
756 B
YAML
- copy:
|
|
dest: /etc/fai/nfsroot.conf
|
|
content: |
|
|
# For a detailed description see nfsroot.conf(5)
|
|
|
|
# "<suite> <mirror>" for debootstrap
|
|
FAI_DEBOOTSTRAP="{{ debian_release }} http://localhost:3142/debian"
|
|
FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
|
|
|
|
NFSROOT=/srv/fai/nfsroot
|
|
TFTPROOT=/srv/tftp/fai
|
|
NFSROOT_HOOKS=/etc/fai/nfsroot-hooks/
|
|
FAI_DEBOOTSTRAP_OPTS="--exclude=wget"
|
|
|
|
# Configuration space
|
|
FAI_CONFIGDIR=/srv/fai/config
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- name: test nfsroot exists
|
|
stat:
|
|
path: /srv/fai/nfsroot
|
|
register: nfsroot_res
|
|
|
|
- name: generate root filesystem, kernel and initrd
|
|
shell: fai-make-nfsroot
|
|
when: "not nfsroot_res.stat.exists"
|