Commit Graph

167 Commits (cf804fb0b8a59abacca5fe38de3c12b23ec8c9a3)

Author SHA1 Message Date
Andrea Scarpino b4064a352e The enable parameter is a boolean, then convert to a boolean. (#1607)
At the moment, this only works when 'enable' is equals to 'yes' or 'no'.

While I'm on it, I also fixed a typo in the example and added a required
parameter.
2016-12-08 11:34:05 -05:00
nitzmahone bd3172b2e8 win_updates fix to use documented InstanceGuid property name 2016-12-08 11:34:03 -05:00
nitzmahone e20eac089f win_updates shouldn't install hidden updates 2016-12-08 11:34:03 -05:00
Hans-Joachim Kliemeck e3d8facc7f fixxed tests 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck c82d72e12a fixed problems related to userpricincipalname (user@domain) and undefined variables fixed variable capitalization 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck 186197397c fixxed problem with match @ 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck 9ba30d2cea only call set-acl if necessary 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck 700ca56c61 as suggested by @marcind, convert to boolean 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck 404483ea83 fixed documentation 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck de4a271dd0 added userprincipal support 2016-12-08 11:34:02 -05:00
Hans-Joachim Kliemeck 65d5658553 added separate module to change owner, since win_acl is ACL only and should not be more complex 2016-12-08 11:34:02 -05:00
Tyler Cross c84bd72496 Add note server 2012 note to win_scheduled_task.
This change adds a note to the win_scheduled_task module
docs that indicates Windows Server 2012 or later is required.
This is because the module relies on the Get-ScheduledTask
cmdlet, which is a part of the Server 2012 OS. Previous
versions, like Server 2008, simply can't work with this
module.
2016-12-08 11:34:00 -05:00
Andrea Scarpino 45a32137ad win_unzip: Use absolute path for src and dest
win_unzip fails to extract files when either src or dest contains
complex paths such as "..\..\" or "C:\\Program Files" (double slashes).
Fix this by fetching absolute path of both before invoking CopyHere
method.
2016-12-08 11:33:58 -05:00
jhawkesworth@users.noreply.github.com d2fe2287f9 Added return documentation to win_regmerge module 2016-12-08 11:33:58 -05:00
Andrea Scarpino f56c557a93 Fix issue #1406 about win_firewall_rule
I changed the logic here to always use 'netsh ... show rule' keywords as keys for $fwsettings map. While the translation (e.g. Enabled -> enable) is performed when invoking 'netsh ... add rule' command.

I tested rule creation and rule creation when the rule was already existing on Windows Server 2012.
2016-12-08 11:33:58 -05:00
Andrea Scarpino e16bd19401 win_unzip: overwrite any existing file 2016-12-08 11:33:58 -05:00
nonshankus 30d76cd37c Fixing win_updates example for listing available updates. 2016-12-08 11:33:57 -05:00
liquidat 7abe6b0e8c correct win_firewall state parameter
- original parameter comment was probably copy&paste error
- new comment highlights that firewall rules can be
  added or removed altering this parameter
2016-12-08 11:33:55 -05:00
Toshio Kuratomi 32ff89b30e Fix module docs 2016-12-08 11:33:55 -05:00
nitzmahone 2afecc7198 fix version_added issues in win_iis_website 2016-12-08 11:33:54 -05:00
nitzmahone 2e4cb9c651 added doc note to win_iis_website site_id arg 2016-12-08 11:33:54 -05:00
Corwin Brown 659c1078ba Updated Documentation to include site_id param 2016-12-08 11:33:54 -05:00
Corwin Brown 2c9512aece Adding Site_ID param 2016-12-08 11:33:54 -05:00
Hans-Joachim Kliemeck bb27e38578 corrected replacement of last backslash 2016-12-08 11:33:54 -05:00
Hans-Joachim Kliemeck cd0e97dc77 corrected requirements 2016-12-08 11:33:54 -05:00
Hans-Joachim Kliemeck 5f9eaf193e fixxed problems related to path input 2016-12-08 11:33:54 -05:00
Hans-Joachim Kliemeck 0d01a36dd9 first implementation of win_share module 2016-12-08 11:33:54 -05:00
Marcin Dobosz 6f68db5c1a Fix win_iis_webapppool module to not null ref when removing an apppool using PS4 2016-12-08 11:33:54 -05:00
nitzmahone 092c3ccbde fix default arg handling and error messages in win_file_version 2016-12-08 11:33:54 -05:00
nitzmahone db58300aa7 fix missing bracket in win_file_version 2016-12-08 11:33:54 -05:00
Sam Liu a077c4bc9d fix some error for passing CI build. 2016-12-08 11:33:53 -05:00
Sam Liu b174416895 Fixed: exception swallowing 2016-12-08 11:33:53 -05:00
Sam Liu d5fe7633e2 new module win_file_version 2016-12-08 11:33:53 -05:00
Corwin Brown 62e8f46390 Converting result to snake_case before returning 2016-12-08 11:33:52 -05:00
Corwin Brown ac620b79dd Added UseBasicParsing flag
win_uri uses "Invoke-WebRequest" under the covers, which apparently
uses Internet Explorer to parse a webpage. The problem is if a user
has never run Internet Explorer, it will be unable to do that. The
work around for this is to set the "-UseBasicParsing" flag.

The only advantage to having the Internet Explorer parsed page is
that you can then access the DOM as if it was a powershell
argument. That doesn't seem super useful for Ansible to be able
to do, so I set the default to be "-UseBasicParsing"
2016-12-08 11:33:52 -05:00
Corwin Brown 20284fed88 bug fixes 2016-12-08 11:33:52 -05:00
Corwin Brown 88e4faa1ac Using Get-AnsibleParam
conflict

typo
2016-12-08 11:33:52 -05:00
Corwin Brown a979624b88 Adding win_uri module 2016-12-08 11:33:52 -05:00
Matt Martz 27be34ef9d DOCUMENTATION fixes for a few modules 2016-12-08 11:33:51 -05:00
Matt Martz e3cffb0de4 Fix version_added for recently added modules 2016-12-08 11:33:51 -05:00
jhawkesworth@users.noreply.github.com d5ad463a5a Add extra PS Drives so you can access other parts of the registry 2016-12-08 11:33:50 -05:00
Phil 55c671a18b removed hardcoded paths, check for .exe error exit code, use get-attr for required param check. 2016-12-08 11:33:50 -05:00
Phil f1579a1207 init commit win_timezone 2016-12-08 11:33:50 -05:00
jhawkesworth@users.noreply.github.com 061365e892 First pass at adding win_regmerge module for handling bulk registry changes 2016-12-08 11:33:50 -05:00
Hans-Joachim Kliemeck 84a5a7a831 fail if type parameter is empty 2016-12-08 11:33:47 -05:00
Hans-Joachim Kliemeck 9a533f1b5f added credits, fixed documentation 2016-12-08 11:33:47 -05:00
Hans-Joachim Kliemeck 464fb89698 made win_acl strict compliant 2016-12-08 11:33:47 -05:00
Hans-Joachim Kliemeck 8f7517ac21 fixed problem with sid/windows 2008 by using SID. fixed problems related to default accounts like BUILTIN\SYSTEM 2016-12-08 11:33:47 -05:00
Corwin Brown dd918401f8 Added Error messages to the Try/Catch blocks 2016-12-08 11:33:47 -05:00
Corwin Brown e0fa5fa74c Switching to Get-AnsibleParam
Switching to Win_Unzip
2016-12-08 11:33:47 -05:00