summaryrefslogtreecommitdiff
path: root/roles/openwrt/image/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openwrt/image/tasks/main.yml')
-rw-r--r--roles/openwrt/image/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openwrt/image/tasks/main.yml b/roles/openwrt/image/tasks/main.yml
index 82a1c50d..c029f4c7 100644
--- a/roles/openwrt/image/tasks/main.yml
+++ b/roles/openwrt/image/tasks/main.yml
@@ -53,6 +53,12 @@
dest: "{{ openwrt_output_dir }}/build-stderr.log"
- name: Delete the temporary build directory
+ when: not openwrt_keep_temporary_build_dir
file:
path: "{{ openwrt_imgbuilder_dir }}"
state: absent
+
+ - name: print temporary build directory information
+ when: openwrt_keep_temporary_build_dir
+ debug:
+ msg: "The temporary build directory has not been deleted, the path to the directory is: {{ openwrt_imgbuilder_dir }}"