blob: 78f92a496b9da07cff510d3ad4e2f544d475ff0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
---
- name: test out Windows WinRM specific tests
hosts: windows
force_handlers: yes
serial: 1
gather_facts: no
tasks:
- name: setup remote tmp dir
import_role:
name: ../../setup_remote_tmp_dir
- name: copy across empty file
win_copy:
content: ''
dest: '{{ remote_tmp_dir }}\empty.txt'
register: winrm_copy_empty
- name: get result of copy across empty file
win_stat:
path: '{{ remote_tmp_dir }}\empty.txt'
register: winrm_copy_empty_actual
- name: assert copy across empty file
assert:
that:
- winrm_copy_empty is changed
- winrm_copy_empty_actual.stat.size == 0
|