mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
652 B
YAML
29 lines
652 B
YAML
3 years ago
|
---
|
||
|
- 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
|