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.
14 lines
493 B
YAML
14 lines
493 B
YAML
7 years ago
|
# NOTE: The win_disk_facts module only works on Win2012R2+
|
||
|
|
||
|
- name: check whether storage module is available (windows 2008 r2 or later)
|
||
|
raw: PowerShell -Command Import-Module Storage
|
||
|
register: win_feature_has_storage_module
|
||
|
ignore_errors: true
|
||
|
|
||
|
- name: Only run tests when Windows is capable
|
||
|
when: (win_feature_has_storage_module|success) and (ansible_powershell_version is defined) and (ansible_powershell_version >= 3)
|
||
|
block:
|
||
|
|
||
|
- name: Test in normal mode
|
||
|
include: tests.yml
|