mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
b8a7e35b22
* Correct integration tests for the win_disk_facts module * Exclude W2K8, W2K8-R2 from tests run under CI
13 lines
467 B
YAML
13 lines
467 B
YAML
# NOTE: The win_disk_facts module only works on Win2012R2+
|
|
|
|
- name: check whether storage module is available (windows 2008 r2 or later)
|
|
win_shell: '(Get-Module -Name Storage -ListAvailable | Measure-Object).Count -eq 1'
|
|
register: win_feature_has_storage_module
|
|
changed_when: false
|
|
|
|
- name: Only run tests when Windows is capable
|
|
when: win_feature_has_storage_module.stdout | trim | bool == True
|
|
block:
|
|
|
|
- name: Test in normal mode
|
|
include: tests.yml
|