diff options
author | zsdc <taras@vyos.io> | 2020-02-28 15:15:40 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2020-02-28 15:15:40 +0200 |
commit | 4494eac16e2e84b668ffada58db4c9fc2a6b9d4f (patch) | |
tree | cdfd45e068f7ac75b83ccb6c538739bf8ca15830 /roles/create-pxe-archive | |
parent | fff4b6531c93e662600c5af35b9f685233530274 (diff) | |
download | vyos-vm-images-4494eac16e2e84b668ffada58db4c9fc2a6b9d4f.tar.gz vyos-vm-images-4494eac16e2e84b668ffada58db4c9fc2a6b9d4f.zip |
Added option to exclude `cc_vyos` from Cloud-init
When Cloud-init metadata is not available this module can break configuration procedure or overwrite options, assigned via User-Data.
Diffstat (limited to 'roles/create-pxe-archive')
-rw-r--r-- | roles/create-pxe-archive/tasks/main.yml | 9 |
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 |