2017-12-20 11:53:19 +00: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 21:42:11 +00:00
|
|
|
win_shell: '(Get-Module -Name Storage -ListAvailable | Measure-Object).Count -eq 1'
|
2017-12-20 11:53:19 +00:00
|
|
|
register: win_feature_has_storage_module
|
2019-02-05 21:42:11 +00:00
|
|
|
changed_when: false
|
2017-12-20 11:53:19 +00:00
|
|
|
|
|
|
|
- name: Only run tests when Windows is capable
|
2019-02-05 21:42:11 +00:00
|
|
|
when: win_feature_has_storage_module.stdout | trim | bool == True
|
2017-12-20 11:53:19 +00:00
|
|
|
block:
|
|
|
|
|
|
|
|
- name: Test in normal mode
|
|
|
|
include: tests.yml
|