Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_disk_facts/tasks/main.yml

raw
1 # NOTE: The win_disk_facts module only works on Win2012R2+
2
3 - name: check whether storage module is available (windows 2008 r2 or later)
4 ansible.windows.win_shell: '(Get-Module -Name Storage -ListAvailable | Measure-Object).Count -eq 1'
5 register: win_feature_has_storage_module
6 changed_when: false
7
8 - name: Only run tests when Windows is capable
9 when: win_feature_has_storage_module.stdout | trim | bool == True
10 block:
11
12 - name: Test in normal mode
13 import_tasks: tests.yml