2017-08-19 03:33:37 +00:00
|
|
|
---
|
|
|
|
- name: create empty folder
|
|
|
|
file:
|
|
|
|
path: '{{role_path}}/files/subdir/empty'
|
2017-03-02 06:35:03 +00:00
|
|
|
state: directory
|
2017-08-19 03:33:37 +00:00
|
|
|
delegate_to: localhost
|
2017-03-02 06:35:03 +00:00
|
|
|
|
2018-03-27 06:20:10 +00:00
|
|
|
# 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
|
|
|
|
|
2017-08-19 03:33:37 +00:00
|
|
|
- name: create test folder
|
2017-05-23 17:57:24 +00:00
|
|
|
win_file:
|
2017-08-19 03:33:37 +00:00
|
|
|
path: '{{test_win_copy_path}}'
|
2017-05-23 17:57:24 +00:00
|
|
|
state: directory
|
|
|
|
|
2017-08-19 03:33:37 +00:00
|
|
|
- block:
|
|
|
|
- name: run tests for local to remote
|
|
|
|
include_tasks: tests.yml
|
|
|
|
|
|
|
|
- name: run tests for remote to remote
|
|
|
|
include_tasks: remote_tests.yml
|
|
|
|
|
|
|
|
always:
|
|
|
|
- name: remove test folder
|
|
|
|
win_file:
|
|
|
|
path: '{{test_win_copy_path}}'
|
|
|
|
state: absent
|