summaryrefslogtreecommitdiff
path: root/roles/cleanup-ending
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2021-06-28 12:57:35 +0200
committerGitHub <noreply@github.com>2021-06-28 12:57:35 +0200
commitb077c2942620581bdb519e6584a40cb383a841e0 (patch)
tree5d9e98c1be886bb2bf9bc3d9da676c78caa90fda /roles/cleanup-ending
parente0ad618192bd652f7a26ed4f34265d4f7de9c45b (diff)
downloadvyos-vm-images-b077c2942620581bdb519e6584a40cb383a841e0.tar.gz
vyos-vm-images-b077c2942620581bdb519e6584a40cb383a841e0.zip
add ability to rebuild an ISO
Diffstat (limited to 'roles/cleanup-ending')
-rw-r--r--roles/cleanup-ending/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/cleanup-ending/tasks/main.yml b/roles/cleanup-ending/tasks/main.yml
index 3a84b98..1693a68 100644
--- a/roles/cleanup-ending/tasks/main.yml
+++ b/roles/cleanup-ending/tasks/main.yml
@@ -15,3 +15,15 @@
file:
path: "{{ vyos_key_local }}"
state: absent
+
+- name: Delete extracted squashfs path
+ become: true
+ file:
+ path: "{{ vyos_install_root }}"
+ state: absent
+
+- name: Delete temp iso creation path
+ become: true
+ file:
+ path: "/tmp/live-{{ vyos_version }}"
+ state: absent