diff options
author | zsdc <taras@vyos.io> | 2020-02-24 23:42:19 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2020-02-26 18:23:14 +0200 |
commit | 9fca551d381b1000d47d370dd3618172a1617fb4 (patch) | |
tree | d79001670319486f97ee76e3fce7e52c225164c6 /roles/cleanup-ending/tasks/main.yml | |
parent | 332dbe851c44543b69e516439baf203c9bebcadc (diff) | |
download | vyos-vm-images-9fca551d381b1000d47d370dd3618172a1617fb4.tar.gz vyos-vm-images-9fca551d381b1000d47d370dd3618172a1617fb4.zip |
Fixes and additions in QEMU image building
* Fixed deleting APT lists from a cache to decrease resulting image size
* Added option for creating an archive with files required for boot via PXE
* Added option for keeping default user when creating an image with Cloud-init
Diffstat (limited to 'roles/cleanup-ending/tasks/main.yml')
-rw-r--r-- | roles/cleanup-ending/tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/cleanup-ending/tasks/main.yml b/roles/cleanup-ending/tasks/main.yml index 1b2715b..18cea29 100644 --- a/roles/cleanup-ending/tasks/main.yml +++ b/roles/cleanup-ending/tasks/main.yml @@ -2,3 +2,11 @@ file: path: "{{ vyos_raw_img }}" state: absent + +- name: Delete PXE folder + file: + path: "/tmp/vyos-pxe-{{ vyos_version }}{{ ci_tag | default() }}" + state: absent + when: + - pxe is defined + - pxe == "true" |