summaryrefslogtreecommitdiff
path: root/roles/create-pxe-archive/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/create-pxe-archive/tasks')
-rw-r--r--roles/create-pxe-archive/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/create-pxe-archive/tasks/main.yml b/roles/create-pxe-archive/tasks/main.yml
index 1fe6e93..4471f27 100644
--- a/roles/create-pxe-archive/tasks/main.yml
+++ b/roles/create-pxe-archive/tasks/main.yml
@@ -27,6 +27,15 @@
when:
- pxe is defined
- pxe == "true"
+ - pxe_excl_module is defined
+ - pxe_excl_module == "true"
+
+- name: Create new squashfs image
+ become: true
+ command: "mksquashfs {{ vyos_install_root }} /tmp/vyos-pxe-{{ vyos_version }}{{ ci_tag | default() }}/filesystem.squashfs -comp gzip -no-progress -Xcompression-level 9 -e {{ vyos_install_root }}/boot"
+ when:
+ - pxe is defined
+ - pxe == "true"
- name: Add the /boot directory
become: true