cleanup destination before copying doc (#9)

cleanup destination before copying doc

Reviewed-by: OpenTelekomCloud Bot <None>
This commit is contained in:
Artem Goncharov 2022-05-09 16:19:54 +02:00 committed by GitHub
parent a4b8acc5d6
commit 81c5e8ac5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,15 @@
- "new_stat.stat.exists"
- "generate_doc_patch_git_patch_location is defined"
- name: Drop {{ doc_label }} new version folder
file:
path: "{{ generate_doc_patch_doc_location }}"
state: "absent"
when:
- "base_stat.stat.exists"
- "new_stat.stat.exists"
- "generate_doc_patch_git_patch_location is defined"
- name: Copy {{ doc_label }} new version
copy:
src: "{{ generate_doc_patch_base }}/{{ generate_doc_patch_new_location }}/"