mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 22:35:08 -02:30
deleting folder contents using find command
This commit is contained in:
@@ -26,7 +26,9 @@
|
|||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: delete project directory before update
|
- 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:
|
tags:
|
||||||
- delete
|
- delete
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user