2017-12-20 12:53:19 +01:00
|
|
|
# NOTE: The win_disk_facts module only works on Win2012R2+
|
|
|
|
|
|
|
|
- name: check whether storage module is available (windows 2008 r2 or later)
|
2019-02-05 22:42:11 +01:00
|
|
|
win_shell: '(Get-Module -Name Storage -ListAvailable | Measure-Object).Count -eq 1'
|
2017-12-20 12:53:19 +01:00
|
|
|
register: win_feature_has_storage_module
|
2019-02-05 22:42:11 +01:00
|
|
|
changed_when: false
|
2017-12-20 12:53:19 +01:00
|
|
|
|
|
|
|
- name: Only run tests when Windows is capable
|
2019-02-05 22:42:11 +01:00
|
|
|
when: win_feature_has_storage_module.stdout | trim | bool == True
|
2017-12-20 12:53:19 +01:00
|
|
|
block:
|
|
|
|
|
|
|
|
- name: Test in normal mode
|
|
|
|
include: tests.yml
|