Commit graph

99 commits

Author SHA1 Message Date
Adam Keech
5a2a22bf68 Adding win_regedit module 2015-07-06 15:25:28 -04:00
Brian Coca
552c4ef53a Merge pull request #441 from petemounce/win_scheduled_task
win_scheduled_task module for windows
2015-06-26 15:58:58 -04:00
Toshio Kuratomi
dec7d95d51 Fix up docs 2015-06-25 07:12:10 -07:00
Toshio Kuratomi
9183170a4a These modules were added to version 2.0, not 1.9 2015-06-25 07:05:29 -07:00
Greg DeKoenigsberg
526e2d30ea Merge pull request #419 from whenrik/devel
Adds Modules to manage IIS
2015-06-23 13:32:38 -04:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Greg DeKoenigsberg
dc519fb848 Add author data 2015-06-16 12:30:47 -04:00
Pepe Barbe
b5d22eb1ec Refactor win_chocolatey module
* Refactor code to be more robust. Run main logic inside a try {} catch {}
  block. If there is any error, bail out and log all the command output
  automatically.
* Rely on error code generated by chocolatey instead of scraping text
  output to determine success/failure.
* Add support for unattended installs: (`-y` flag is a requirement by
  chocolatey)
* Before (un)installing, check existence of files.
* Use functions to abstract logic
* The great rewrite of 0.9.9, the `choco` interface has changed, check
  if chocolatey is installed and an older version. If so upgrade to
  latest.
* Allow upgrading packages that are already installed
* Use verbose logging for chocolate actions
* Adding functionality to specify a source for a chocolatey repository.
  (@smadam813)
* Removing pre-determined sources and adding specified source url in
  it's place. (@smadam813)

Contains contributions from:
*  Adam Keech  <akeech@chathamfinancial.com> (@smadam813)
2015-06-16 11:33:15 -04:00
Ernst Kuschke
3761052597 Allow any custom chocolatey source
This is to allow for a local source (for instance in the form of artifactory)
2015-06-16 11:33:11 -04:00
Brian Coca
e5d59d2014 Merge pull request #494 from jhawkesworth/set_windows_environment_variables
Set windows environment variables
2015-05-26 10:00:31 -04:00
Peter Mounce
a4a3a13439 Code-review
Swap state enabled/disabled -> enabled yes/no
2015-05-19 11:30:05 +01:00
Peter Mounce
d9211b709b no default, remove it 2015-05-19 11:14:04 +01:00
Peter Mounce
ede4820562 version_added -> 2, remove empty aliases 2015-05-19 11:14:03 +01:00
Peter Mounce
4fef779f09 caught out by syntax 2015-05-19 11:14:02 +01:00
Peter Mounce
6f1d9fbbcc correct variable name 2015-05-19 11:14:00 +01:00
Peter Mounce
d1c896d31e win_scheduled_task module for windows
Fledgling module to allow scheduled tasks to be managed.
At present, I only need enabled/disabled support. There's lots of scope for more features.
2015-05-19 11:13:59 +01:00
Toshio Kuratomi
88eff11c04 Many more doc fixes 2015-05-15 12:12:26 -07:00
Jon Hawkesworth
ccd9a4eb6a Update attribution 2015-05-15 00:40:30 +01:00
Jon Hawkesworth
44fa32f2dc Add win_environment module 2015-05-15 00:29:53 +01:00
Greg DeKoenigsberg
efd307903c Adding author's github id 2015-05-14 01:30:45 -04:00
Greg DeKoenigsberg
8ec8cd182a Adding author's github id 2015-05-14 01:30:01 -04:00
Greg DeKoenigsberg
9a1e35e1db Adding author's github id 2015-05-14 01:29:21 -04:00
Henrik Wallström
91483bdd6b Modules to manage IIS
Wraps the Web Server Administration module for PowerShell into Ansible modules.
2015-04-24 10:48:02 +02:00
Brian Coca
24734db807 corrected version added 2014-12-17 12:49:51 -05:00
net
33585d14a3 package file 2014-12-17 13:25:51 +02:00
Brian Coca
b5a0d10925 changed to use ansible standard 'name' instead of 'package' 2014-12-06 19:04:19 -05:00
Toshio Kuratomi
19e688b017 Fixes to documentation 2014-12-03 08:16:11 -08:00
Brian Coca
12e419bb4b Merge pull request #37 from petemounce/chocolatey
win_chocolatey: Windows package management with Chocolatey
2014-12-01 11:49:17 -05:00
Peter Mounce
9fb500480b Windows package management with Chocolatey 2014-10-01 14:58:45 +01:00
Peter Mounce
7f2732782d Add module to install windows updates
Supports specifying which category to install all updates from.
NEEDS: `choco install PSWindowsUpdate` beforehand - does not attempt to install it (or detect it's missing, yet)
PSWindowsUpdate: http://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc#content
2014-09-30 00:27:29 +01: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
Chris Church
1b6ef9aa2e Replace Get-FileHash with MD5 code that works on PowerShell 3. 2014-08-28 01:42:22 -04:00
Michael DeHaan
71786bbdc8 Merge pull request #8227 from trondhindenes/win_setup_improvements
win_setup improvements: Correcly outputs ansible_totalmem
2014-08-08 12:42:41 -04: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
Trond Hindenes
ba507553b0 Better result handling 2014-07-10 12:00:00 +02:00
Trond Hindenes
8e16962596 improvements to win_feature 2014-07-08 18:04:12 +02:00
Chris Church
042d5b761d Return service name, display name, start mode and state from win_service module. 2014-07-02 08:12:40 -04:00
Michael DeHaan
f777471337 Merge pull request #7889 from chrishoffman/win_group
Adding win_group module
2014-06-22 11:26:27 -05:00
Chris Hoffman
da7c617ad3 Adding win_group module 2014-06-22 09:01:04 -04:00
Chris Hoffman
3a3a285d96 Fixing bug with stopped state 2014-06-21 22:01:02 -04:00
Chris Hoffman
24ad45c8e6 Better propagation of cmdlet errors 2014-06-21 21:59:53 -04:00
Chris Hoffman
0f2c5a3472 Using generic windows service for example 2014-06-21 21:58:26 -04:00
Michael DeHaan
4e153c7584 Merge pull request #7881 from cchurch/devel
Fix typo in powershell setup module.
2014-06-21 11:31:35 -05:00
Chris Hoffman
3000614930 Adding win_service module 2014-06-21 12:04:11 -04:00
Chris Church
1780cd6fda Fix typo in powershell setup module. 2014-06-21 10:27:43 -04:00
Simon Olofsson
73c4cb4c07 win_feature: Fix Description. 2014-06-20 17:14:36 +02:00
Paul Durivage
eba5e34641 Check .GetType rather than object directly 2014-06-19 16:41:24 -05:00