mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
deleting folder contents using find command
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user