From 9fca551d381b1000d47d370dd3618172a1617fb4 Mon Sep 17 00:00:00 2001 From: zsdc Date: Mon, 24 Feb 2020 23:42:19 +0200 Subject: 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 --- roles/cleanup-ending/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles/cleanup-ending/tasks') 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" -- cgit v1.2.3