ansible/test/integration/targets/win_disk_facts/tasks/main.yml
Matt Martz 57575d1cfa
Fix tests as filters #4 (#33930)
* Resolve newly added tests as filters

* Add code smell to test for ansible provided jinja tests as filters syntax

* Add docs for no-tests-as-filters code smell test

* Address tests as filters in new integration tests

* Address feedback

* Address feedback 2
2017-12-21 13:42:53 -06:00

13 lines
500 B
YAML

# 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
when: ( win_feature_has_storage_module is successful) and (ansible_powershell_version is defined) and (ansible_powershell_version >= 3)
block:
- name: Test in normal mode
include: tests.yml