mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
win_copy: added fix for win_copy deleting local tmp folder (#37964)
This commit is contained in:
@@ -5,6 +5,16 @@
|
||||
state: directory
|
||||
delegate_to: localhost
|
||||
|
||||
# removes the cached zip module from the previous task so we can replicate
|
||||
# the below issue where win_copy would delete DEFAULT_LOCAL_TMP if it
|
||||
# had permission to
|
||||
# https://github.com/ansible/ansible/issues/35613
|
||||
- name: clear the local ansiballz cache
|
||||
file:
|
||||
path: "{{lookup('config', 'DEFAULT_LOCAL_TMP')}}/ansiballz_cache"
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
|
||||
- name: create test folder
|
||||
win_file:
|
||||
path: '{{test_win_copy_path}}'
|
||||
|
||||
Reference in New Issue
Block a user