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)
|
|
|
|
raw: PowerShell -Command Import-Module Storage
|
|
|
|
register: win_feature_has_storage_module
|
|
|
|
ignore_errors: true
|
|
|
|
|
|
|
|
- name: Only run tests when Windows is capable
|
2017-12-21 19:42:53 +00:00
|
|
|
when: ( win_feature_has_storage_module is successful) and (ansible_powershell_version is defined) and (ansible_powershell_version >= 3)
|
2017-12-20 11:53:19 +00:00
|
|
|
block:
|
|
|
|
|
|
|
|
- name: Test in normal mode
|
|
|
|
include: tests.yml
|