mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
978a979566
* win_dsc: improved parameter handling * removed uneeded try/catch leftover from testing * removed undeed return values * added custom DSC to fully test out casting * fix up codestyle issues * using new Requires ps version check * fixed up error message check on earlier ps version
8 lines
341 B
YAML
8 lines
341 B
YAML
# basic smoke tests run on hosts that cannot run DSC, verifies the code is at
|
|
# least runnable
|
|
---
|
|
- name: expect failure when running on old PS hosts
|
|
win_dsc:
|
|
resource_name: File
|
|
register: fail_dsc_old
|
|
failed_when: '"This module cannot run as it requires a minimum PowerShell version of 5.0, actual was " not in fail_dsc_old.msg'
|