nitzmahone
3f5d6df5f7
fixed ansible_totalmem fact returning 0
...
Win32_PhysicalMemory CIM object is busted on some virtual environments, switched
to Win32_ComputerSystem.TotalPhysicalMemory
2015-11-04 17:29:08 -08:00
Michael Perzel
6615e618d9
Added date, year and month attributes
2015-10-12 16:16:10 -05:00
Michael Perzel
785ebe2684
Add ansible_date_time to windows facts
2015-10-12 16:02:36 -05:00
Matt Calhoun
73843693b7
The variable $uppercase_cert_thumbprint cannot be retrieved because it has not been set.
2015-09-29 16:40:22 -04:00
Matt Calhoun
4350188076
The variable $winrm_cert_thumbprint cannot be retrieved because it has not been set.
2015-09-29 16:38:48 -04:00
Matt Calhoun
1d8334674f
The variable $https_listener cannot be retrieved because it has not been set.
2015-09-29 16:37:26 -04:00
Matt Calhoun
d8f9c81022
The variable $winrm_https_listener_path cannot be retrieved because it has not been set
2015-09-29 16:35:47 -04:00
Chris Church
82c1cc7989
Revert "Rename powershell versions of setup and slurp so they don't shadow the python versions of these modules."
...
This reverts commit d4e16b0c73
.
2015-09-16 22:22:35 -04:00
Toshio Kuratomi
d4e16b0c73
Rename powershell versions of setup and slurp so they don't shadow the python versions of these modules.
...
This change goes along with https://github.com/ansible/ansible/02502c5727753d02819cb32b94dc2035b65d81a7
2015-09-15 14:22:19 -07:00
Chris Church
1d074d43aa
* Update core modules to fix strict mode errors.
...
* Also fix creates parameter issue in win_msi as described in https://github.com/ansible/ansible-modules-core/issues/129 , slightly different fix from https://github.com/ansible/ansible-modules-core/pull/1482
* Fix setup.ps1 module issue described in https://github.com/ansible/ansible-modules-core/issues/1927
2015-08-22 19:01:11 -04:00
nitzmahone
2a5f3754e7
added windows facts ansible_lastboot, ansible_uptime_seconds
...
switched OS object to Get-CimInstance since we need a DateTime object for lastbootuptime
2015-08-21 13:37:29 -07:00
Pepe Barbe
fb7ff9271a
Add OS architecture and OS name to the Windows setup module
2015-04-06 23:25:29 -05:00
Michael DeHaan
617a52b20d
Fix filename error.
2014-09-26 17:06:31 -04:00
Michael DeHaan
c8e1a2077e
file extensions!
2014-09-26 10:37:56 -04:00
Michael DeHaan
417309a626
Restructuring.
2014-09-26 10:13:26 -04:00
Michael DeHaan
73123b69fa
Move modules into subdirectory.
2014-09-26 09:23:50 -04:00
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.
2014-09-01 21:22:18 +01:00
Jon Hawkesworth
a098882fb9
Added null check in case http connection used and no cert found.
2014-08-31 16:20:50 +01:00
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
Trond Hindenes
fc26601981
win_setup improvements: Correcly outputs ansible_totalmem on computers with multiple ram chips
2014-07-22 01:38:46 +02:00
Chris Church
1780cd6fda
Fix typo in powershell setup module.
2014-06-21 10:27:43 -04:00
Paul Durivage
cb129b444a
Add memory and IP information to setup
2014-06-19 14:25:27 -05:00
Matt Martz
b0ef377a09
Add Exit-Json and Fail-Json powershell helper functions
2014-06-19 14:24:15 -05:00
Matt Martz
d30f0e384a
setup.ps1 willnot support fact_path and filter to start
2014-06-19 14:24:14 -05:00
Matt Martz
2e3a44d835
Need to call ToString Platform to get the string
2014-06-19 14:24:14 -05:00
Matt Martz
ddb7e6669e
Add start for powershell setup module
2014-06-19 14:24:13 -05:00