blob: 5e094aec40ee2d86a44019fbb6cb5758ebd43301 (
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
29
|
---
- name: get PowerShell version of the host
win_shell: $PSVersionTable.PSVersion.Major
changed_when: False
register: ps_version
- name: setup and run tests block
when: ps_version.stdout | trim | int >= 5
block:
- name: create temporary directory
win_tempfile:
state: directory
suffix: .test
register: remote_tmp_dir
notify:
- delete temporary directory
- name: record temporary directory
set_fact:
remote_tmp_dir: '{{ remote_tmp_dir.path }}'
- name: update PSGet and PackageManagement for tests
include_tasks: install.yml
- name: setup local PSRepository with test modules
include_tasks: repo.yml
- name: test win_psmodule
include_tasks: test.yml
|