ansible/windows
Trond Hindenes 9aa6c44473 All changes referenced in PRs #8767 , #8768 , #8769 :
This changes the get-attr function slightly, and lets the module specify whether a param is needed and auto-fails if it is not present. A module can now verify params like so::
 $params = Parse-Args $args;
 $result = New-Object psobject;
 Set-Attr $result "changed" $false;
 $path = Get-Attr -obj $params -name path -failifempty $true -resultobj $result

or

$params = Parse-Args $args;
 $result = New-Object psobject;
 Set-Attr $result "changed" $false;
 $path = Get-Attr -obj $params -name path -failifempty $true -emptyattributefailmessage "Oh man. You forgot the main part!" -resultobj $result

slight tweak in how the powershell module converts to json in order to support nested objects (allows for more complex facts, among others)

This script gathers some extended facts on windows hosts in a json array attribute called "ansible_interfaces". This info is needed for some network-related modules I'm working on. Required the update to powershell.ps1 to return deeply nested json objects.
2014-08-29 10:39:42 +02:00
..
setup.ps1 All changes referenced in PRs #8767 , #8768 , #8769 : 2014-08-29 10:39:42 +02:00
slurp.ps1 Update slurp/win_ping/win_stat to use Get-Attr. 2014-06-19 14:26:36 -05:00
win_feature improvements to win_feature 2014-07-08 18:04:12 +02:00
win_feature.ps1 Better result handling 2014-07-10 12:00:00 +02:00
win_get_url Make sure the doc stubs for windows modules have proper license headers 2014-06-19 14:27:04 -05:00
win_get_url.ps1 Make non-executable 2014-06-19 14:25:28 -05:00
win_group Adding win_group module 2014-06-22 09:01:04 -04:00
win_group.ps1 Adding win_group module 2014-06-22 09:01:04 -04:00
win_msi Remove unneeded code, document creates param and ensure creates only affects state=present 2014-06-19 14:25:27 -05:00
win_msi.ps1 Remove unneeded code, document creates param and ensure creates only affects state=present 2014-06-19 14:25:27 -05:00
win_ping Add data option to docs for win_ping. 2014-06-19 14:25:50 -05:00
win_ping.ps1 Update slurp/win_ping/win_stat to use Get-Attr. 2014-06-19 14:26:36 -05:00
win_service Using generic windows service for example 2014-06-21 21:58:26 -04:00
win_service.ps1 Return service name, display name, start mode and state from win_service module. 2014-07-02 08:12:40 -04:00
win_stat Add tests for win_stat module. 2014-06-19 14:25:50 -05:00
win_stat.ps1 Replace Get-FileHash with MD5 code that works on PowerShell 3. 2014-08-28 01:42:22 -04:00
win_user Update documentation 2014-06-19 16:40:18 -05:00
win_user.ps1 Check .GetType rather than object directly 2014-06-19 16:41:24 -05:00