mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Merge pull request #13618 from TheRealHaoLiu/head-to-tail
[fix] switch from head to tail in project update playbook when clearing project dir
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
name: Update source tree if necessary
|
name: Update source tree if necessary
|
||||||
tasks:
|
tasks:
|
||||||
- name: Delete project directory before update
|
- name: Delete project directory before update
|
||||||
ansible.builtin.shell: set -o pipefail && find . -delete -print | head -2 # volume mounted, cannot delete folder itself
|
ansible.builtin.shell: set -o pipefail && find . -delete -print | tail -2 # volume mounted, cannot delete folder itself
|
||||||
register: reg
|
register: reg
|
||||||
changed_when: reg.stdout_lines | length > 1
|
changed_when: reg.stdout_lines | length > 1
|
||||||
args:
|
args:
|
||||||
|
|||||||
Reference in New Issue
Block a user