You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
10 years ago
..
setup.ps1 All changes referenced in PRs #8767 , #8768 , #8769 : 10 years ago
slurp.ps1 Update slurp/win_ping/win_stat to use Get-Attr. 11 years ago
win_feature improvements to win_feature 11 years ago
win_feature.ps1 Better result handling 11 years ago
win_get_url Make sure the doc stubs for windows modules have proper license headers 11 years ago
win_get_url.ps1 Make non-executable 11 years ago
win_group Adding win_group module 11 years ago
win_group.ps1 Adding win_group module 11 years ago
win_msi Remove unneeded code, document creates param and ensure creates only affects state=present 11 years ago
win_msi.ps1 Remove unneeded code, document creates param and ensure creates only affects state=present 11 years ago
win_ping Add data option to docs for win_ping. 11 years ago
win_ping.ps1 Update slurp/win_ping/win_stat to use Get-Attr. 11 years ago
win_service Using generic windows service for example 11 years ago
win_service.ps1 Return service name, display name, start mode and state from win_service module. 11 years ago
win_stat Add tests for win_stat module. 11 years ago
win_stat.ps1 Replace Get-FileHash with MD5 code that works on PowerShell 3. 10 years ago
win_user Update documentation 11 years ago
win_user.ps1 Check .GetType rather than object directly 11 years ago