Commit Graph

14 Commits (8d4ed1043bd638bff231b8b7973e3c985b3de0fa)

Author SHA1 Message Date
Michael DeHaan 617a52b20d Fix filename error. 10 years ago
Michael DeHaan c8e1a2077e file extensions! 10 years ago
Michael DeHaan 417309a626 Restructuring. 10 years ago
Michael DeHaan 73123b69fa Move modules into subdirectory. 10 years ago
Jon Hawkesworth f8a5ddb9fd This change selects the certificate from the winrm configuration and attempts to find the expiry date from that.
Trond Hindenes pointed out that simply picking the first certificate from local computer certs is not guaranteed to select the correct certificate.
10 years ago
Jon Hawkesworth a098882fb9 Added null check in case http connection used and no cert found. 10 years ago
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
Trond Hindenes fc26601981 win_setup improvements: Correcly outputs ansible_totalmem on computers with multiple ram chips 10 years ago
Chris Church 1780cd6fda Fix typo in powershell setup module. 11 years ago
Paul Durivage cb129b444a Add memory and IP information to setup 11 years ago
Matt Martz b0ef377a09 Add Exit-Json and Fail-Json powershell helper functions 11 years ago
Matt Martz d30f0e384a setup.ps1 willnot support fact_path and filter to start 11 years ago
Matt Martz 2e3a44d835 Need to call ToString Platform to get the string 11 years ago
Matt Martz ddb7e6669e Add start for powershell setup module 11 years ago