Move tasks for squashfs into nfsroot

This commit is contained in:
rockstable 2022-12-10 23:34:59 +01:00
parent 3bc3dbe301
commit 8382e372a8
3 changed files with 23 additions and 1 deletions

View File

@ -50,3 +50,23 @@
- fai_loguser is not none
- false
- name: "Check for squashfs image of nfsroot in '{{ fai_squashfs_path }}'"
ansible.builtin.stat:
path: "{{ fai_squashfs_path }}"
register: squashfs
tags:
- ipxe
- fai_squashfs_stat
- name: "Generate a squashfs of nfsroot filesystem in '{{ fai_squashfs_path }}'"
become: true
ansible.builtin.shell:
cmd: >
fai-cd -f -M -S "{{ fai_squashfs_path }}"
-d "{{ http_mirror_fai_profiles_url }}"
when:
- not squashfs.stat.exists or
fai_nfsroot_force_rebuild
tags:
- ipxe
- fai_squashfs_generate

View File

@ -53,7 +53,8 @@
fai-cd -f -M -S "{{ fai_squashfs_path }}"
-d "{{ http_mirror_fai_profiles_url }}"
when:
- not squashfs.stat.exists
- not squashfs.stat.exists or
fai_nfsroot_force_rebuild
tags:
- ipxe
- fai_squashfs_generate

View File

@ -104,6 +104,7 @@
import_tasks: fai-pxe.yml
tags:
- fai_pxe
- fai_ipxe
- name: "Configure FAI iPXE"
import_tasks: fai-ipxe.yml