deleting folder contents using find command

This commit is contained in:
Sarabraj Singh
2022-05-10 14:06:39 -04:00
parent 9b0b0f2a5f
commit 4c0813bd69

View File

@@ -26,7 +26,9 @@
tasks:
- name: delete project directory before update
command: "rm -rf {{project_path}}/*" # volume mounted, cannot delete folder itself
command: "find -delete" # volume mounted, cannot delete folder itself
args:
chdir: "{{ project_path }}"
tags:
- delete