fixing rm -Rf logic to delete contents of folder but leave parent folder intact

This commit is contained in:
Sarabraj Singh 2022-05-05 14:28:26 -04:00
parent 2c350b8b90
commit df2d303ab0
No known key found for this signature in database
GPG Key ID: DB2C5CAED943C5BE

View File

@ -26,9 +26,10 @@
tasks:
- name: delete project directory before update
command: "rm -rf {{project_path}}/*" # volume mounted, cannot delete folder itself
command: "rm -rf {{project_path}}/* {{project_path}}/.* 2>&-" # volume mounted, cannot delete folder itself
tags:
- delete
ignore_errors: true
- block:
- name: update project using git