Move tasks for squashfs into nfsroot
This commit is contained in:
parent
3bc3dbe301
commit
8382e372a8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -104,6 +104,7 @@
|
|||
import_tasks: fai-pxe.yml
|
||||
tags:
|
||||
- fai_pxe
|
||||
- fai_ipxe
|
||||
|
||||
- name: "Configure FAI iPXE"
|
||||
import_tasks: fai-ipxe.yml
|
||||
|
|
Loading…
Reference in New Issue