mirror of
https://github.com/ansible/awx.git
synced 2024-10-28 10:55:30 +03:00
Merge pull request #12186 from sarabrajsingh/bugfix-delete-on-update-11733
fixing rm -Rf logic to delete contents of folder
This commit is contained in:
commit
dfea9cc526
@ -26,9 +26,10 @@
|
|||||||
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: "rm -rf {{project_path}}/* {{project_path}}/.* 2>&-" # volume mounted, cannot delete folder itself
|
||||||
tags:
|
tags:
|
||||||
- delete
|
- delete
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: update project using git
|
- name: update project using git
|
||||||
|
Loading…
Reference in New Issue
Block a user