Commit Graph

300 Commits (44bfca315a98e7fd12ce73c60220c64ce870fbb2)

Author SHA1 Message Date
gfrank ee395ced4d Clean up unneeded comment and comma 9 years ago
Chris Church 6a7b2f5869 Workaround for bug in PowerShell Get-Website cmdlet. 9 years ago
Brian Coca e30d8b84fe more doc fixes 9 years ago
Greg DeKoenigsberg e1b15e6930 Merge pull request #438 from petemounce/win_webpicmd
win_webpicmd module for IIS module installation
9 years ago
Greg DeKoenigsberg 34bd09aae1 Merge pull request #440 from petemounce/win_dotnet_ngen
Create win_dotnet_ngen module
9 years ago
Peter Mounce 8128d42dcd re-submit @adematte's PR #278 against HEAD 9 years ago
Michael Perzel 681cdd1c12 Remove accidental newlines 10 years ago
Michael Perzel cdb36ea0fc Cleanup enable/disable logic 10 years ago
Phil b598161f46 minor doc fixes that had lingering description of deprecated functions 10 years ago
Brian Coca cc305adfb6 minor doc fixes 10 years ago
Brian Coca 2754157d87 minor doc fixes 10 years ago
Phil 26bdf16e69 changes param src to path, and updates docs accordingly 10 years ago
Phil 05e01bd3b5 updates user search verification for local/domain
- Thanks to @trondhindenes for implementing this strategy
- also updated documentation
10 years ago
Trond Hindenes a2166b60cb Added module win_package 10 years ago
Greg DeKoenigsberg c6e069dead Merge pull request #174 from schwartzmx/module/win_unzip
win_unzip Module
10 years ago
gfrank 05d5d939e7 Adding nssm requirement note 10 years ago
gfrank 8a72cf6a1c Adding win_nssm module 10 years ago
Michael Perzel 3542e7d42d Update method to determine if task exists, add days of week parameter to weekly triggers 10 years ago
Adam Keech 389e59b970 Adding functionality to not only edit Values, but also Keys. 10 years ago
Adam Keech e84666fd74 Renaming variables in win_regedit module to make more sense with actions that are happening. 10 years ago
Adam Keech 5a2a22bf68 Adding win_regedit module 10 years ago
Phil dc84f05fed changes check for src 10 years ago
Phil 311d73620b use convertto-bool for rm and recurse params 10 years ago
Timothy Vandenbrande b0a637086f add version_added: "2.0" 10 years ago
Timothy Vandenbrande d87da2ba2d renamed profile var 10 years ago
Michael Perzel 00d3a62907 Documentation updates 10 years ago
Michael Perzel d6339c47e4 Ability to add/remove scheduled task 10 years ago
Timothy Vandenbrande 97d8273558 windows default to current instead of all 10 years ago
Timothy Vandenbrande 2a0df8ec04 renamed the module 10 years ago
Timothy Vandenbrande ada6d0a18c added the profile option + updated the docs for it 10 years ago
Timothy Vandenbrande 828482643a Merge remote-tracking branch 'upstream/devel' into win_fw 10 years ago
Brian Coca 552c4ef53a Merge pull request #441 from petemounce/win_scheduled_task
win_scheduled_task module for windows
10 years ago
Phil b5d724c2fb removed hardcoded paths, check for .exe error exit code, use get-attr for required param check. 10 years ago
Toshio Kuratomi dec7d95d51 Fix up docs 10 years ago
Toshio Kuratomi 9183170a4a These modules were added to version 2.0, not 1.9 10 years ago
Greg DeKoenigsberg 526e2d30ea Merge pull request #419 from whenrik/devel
Adds Modules to manage IIS
10 years ago
Phil 6b41b80b09 init commit win_timezone 10 years ago
Phil 03ce40a62e removes restart functionality, and added creates param for idempotency 10 years ago
Phil 92744ef558 fixes typo 10 years ago
Phil d72bb17de1 check if the rule exists or not before allow/deny rules are added/removed, and fixes where result changed would be true on all executions. 10 years ago
Phil 623a29cc0e update to not auto-install PSCX
- will use built-in powershell method instead for .zip files
- added example for installing pscx as a pretask
10 years ago
Greg DeKoenigsberg 004dedba8a Changes to author formatting, remove emails 10 years ago
Greg DeKoenigsberg dc519fb848 Add author data 10 years ago
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)
10 years ago
Ernst Kuschke 3761052597 Allow any custom chocolatey source
This is to allow for a local source (for instance in the form of artifactory)
10 years ago
Brian Coca e5d59d2014 Merge pull request #494 from jhawkesworth/set_windows_environment_variables
Set windows environment variables
10 years ago
Peter Mounce 8454997cd9 version -> 2, remove unnecessary doc attributes 10 years ago
Peter Mounce dc347b0683 fix license boilerplate 10 years ago
Peter Mounce ec172be310 win_webpicmd module for IIS module installation
Chocolatey 0.9.9+ deprecated support for the `webpi` custom source, so I needed to write this.

[Windows Web Platform Installer](http://www.microsoft.com/web/downloads/platform.aspx) is a way of installing products and applications for Microsoft IIS on Windows. It has a [command line](http://www.iis.net/learn/install/web-platform-installer/web-platform-installer-v4-command-line-webpicmdexe-rtw-release); this ansible module allows IIS modules to be installed via this means.

To find out names of modules, use `webpicmd /list /listoption:available`.

Notes:
* `webpicmd` must be installed and on `PATH` first (see `win_chocolatey` module; package is `webpicmd`)
* `webpicmd` does not allow modules to be uninstalled
* IIS must be installed first (see `win_feature` module; package is `Web-Server`)
* Installations will
  * accept EULA (which otherwise requires user input)
  * suppress reboots (so you have to manage those; see `win_reboot` module)
10 years ago
Peter Mounce c322627320 use the notes property 10 years ago
Peter Mounce 52a87e1637 version -> 2, quote doc strings with colons 10 years ago
Peter Mounce ddb85479cd Add documentation note 10 years ago
Peter Mounce 0b0416aca1 Create win_dotnet_ngen module
When .NET is installed or updated, ngen is triggered to optimise the installation. This triggers high CPU while it's happening, and usually happens at an inconvenient time.

This allows you to trigger it when you like. Full details and background in doc.

I don't know a way to figure out whether this is required without actually running it.
10 years ago
Peter Mounce a4a3a13439 Code-review
Swap state enabled/disabled -> enabled yes/no
10 years ago
Peter Mounce d9211b709b no default, remove it 10 years ago
Peter Mounce ede4820562 version_added -> 2, remove empty aliases 10 years ago
Peter Mounce 4fef779f09 caught out by syntax 10 years ago
Peter Mounce 6f1d9fbbcc correct variable name 10 years ago
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.
10 years ago
Toshio Kuratomi 88eff11c04 Many more doc fixes 10 years ago
Jon Hawkesworth ccd9a4eb6a Update attribution 10 years ago
Jon Hawkesworth 44fa32f2dc Add win_environment module 10 years ago
Greg DeKoenigsberg efd307903c Adding author's github id 10 years ago
Greg DeKoenigsberg 8ec8cd182a Adding author's github id 10 years ago
Greg DeKoenigsberg 9a1e35e1db Adding author's github id 10 years ago
Henrik Wallström 91483bdd6b Modules to manage IIS
Wraps the Web Server Administration module for PowerShell into Ansible modules.
10 years ago
schwartzmx c6d5680967 fixes unzip bug for zip files, thanks to @ryanwalls
- also fixes possible import errors, and switches to use Start-Process on install to correctly wait
10 years ago
Timothy Vandenbrande 6b43dd630c windows firewall control 10 years ago
schwartzmx 4ece7362fb inital commit win_acl 10 years ago
schwartzmx 99927a5c54 updates docs, adds unzip func for bz2 gz tar msu¬
- Added functionality for unzipping/decompressing bzip gzip tar exe (self extracting) and msu (ms update) files to coincide with added functionality to win_zip¬
  - Added functionality requires PSCX (it will be installed if it can't be imported)¬¬
    - First try with chocolatey, if fail, direct install from msi
- Added recurse param to recursively unzip files from a compressed folder¬
  - useful for example: unzipping a Log.zip file that contains a load of .gz files¬
    - setting rm param to true will remove all compressed files after decompressing¬
10 years ago
Phil Schwartz a95fabeeb2 fixes rm & restart param checks 10 years ago
Phil Schwartz 61d3f23c03 edit check for extension to use library func 10 years ago
Phil Schwartz fd12a5cc84 specifies creation of directory if !exists
- added try catch for creation of directory, in case of an invalid path specified
- added specification to documentation
10 years ago
Phil Schwartz a21e23846d init commit 10 years ago
Brian Coca 24734db807 corrected version added 10 years ago
net 33585d14a3 package file 10 years ago
Brian Coca b5a0d10925 changed to use ansible standard 'name' instead of 'package' 10 years ago
Toshio Kuratomi 19e688b017 Fixes to documentation 10 years ago
Brian Coca 12e419bb4b Merge pull request #37 from petemounce/chocolatey
win_chocolatey: Windows package management with Chocolatey
10 years ago
Peter Mounce 9fb500480b Windows package management with Chocolatey 10 years ago
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
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
Chris Church 1b6ef9aa2e Replace Get-FileHash with MD5 code that works on PowerShell 3. 10 years ago
Michael DeHaan 71786bbdc8 Merge pull request #8227 from trondhindenes/win_setup_improvements
win_setup improvements: Correcly outputs ansible_totalmem
10 years ago
Trond Hindenes fc26601981 win_setup improvements: Correcly outputs ansible_totalmem on computers with multiple ram chips 11 years ago
Trond Hindenes ba507553b0 Better result handling 11 years ago
Trond Hindenes 8e16962596 improvements to win_feature 11 years ago
Chris Church 042d5b761d Return service name, display name, start mode and state from win_service module. 11 years ago
Michael DeHaan f777471337 Merge pull request #7889 from chrishoffman/win_group
Adding win_group module
11 years ago
Chris Hoffman da7c617ad3 Adding win_group module 11 years ago
Chris Hoffman 3a3a285d96 Fixing bug with stopped state 11 years ago
Chris Hoffman 24ad45c8e6 Better propagation of cmdlet errors 11 years ago
Chris Hoffman 0f2c5a3472 Using generic windows service for example 11 years ago
Michael DeHaan 4e153c7584 Merge pull request #7881 from cchurch/devel
Fix typo in powershell setup module.
11 years ago
Chris Hoffman 3000614930 Adding win_service module 11 years ago
Chris Church 1780cd6fda Fix typo in powershell setup module. 11 years ago
Simon Olofsson 73c4cb4c07 win_feature: Fix Description. 11 years ago
Paul Durivage eba5e34641 Check .GetType rather than object directly 11 years ago
Paul Durivage 1fee46270c Move check down for access to 11 years ago
Paul Durivage 44fcebc5aa Rename variable 11 years ago
Paul Durivage 42834963cc Update documentation 11 years ago
Paul Durivage ce0909035b Fix so it only deletes users that exist 11 years ago
Paul Durivage 6f87380248 Remove commented out lines 11 years ago
Paul Durivage ac1d1b509b Fix incorrect name 11 years ago
Paul Durivage 5636f2b033 Move functions to top for correct scope 11 years ago
Paul Durivage f8f1b7e922 Refactor of win_user module 11 years ago
Matt Martz 0ac996fbaa Add documentation for win_user module 11 years ago
Matt Martz 53497d90da Make sure the doc stubs for windows modules have proper license headers 11 years ago
Matt Martz 1f9121911c Make sure the module name is specified correctly in the win_feature docs 11 years ago
Paul Durivage 52ffcfb1ea Add documentation for win_feature module 11 years ago
Paul Durivage 8b0cc1a87b Add comments 11 years ago
Paul Durivage ebbf356b30 Add restart functionality 11 years ago
Paul Durivage a8dff668dd Renaming and refactoring of names, variables 11 years ago
Chris Church d1423254d0 Update slurp/win_ping/win_stat to use Get-Attr. 11 years ago
Paul Durivage e0f618b27a Remove unnecessary obj 11 years ago
Chris Church 2a20dfe963 Add data option to docs for win_ping. 11 years ago
Chris Church a13b2dd3b3 Add tests for win_stat module. 11 years ago
Paul Durivage c218a125bb Fix variable reference 11 years ago
Paul Durivage c83e5d0890 Ensure state is present if no value provided 11 years ago
Paul Durivage 03526456fa Fix logic to ensure state is either present or absent 11 years ago
Paul Durivage 376d1cc0a4 Add prelim version of win_feature module (for installing packages, roles, features, etc) 11 years ago
Michael DeHaan 2944962915 Add explanation of windows upgrade details. 11 years ago
Don Schenck 755da95e15 Added logging to UpgradeToPS3.ps1
UpgradeToPS3.ps1 failed when tested with Ansible. Added logging output
to file C:\powershell\install.log.
11 years ago
Chris Church e9c9cab3c8 Add integration tests for fetch/slurp, make powershell fetch/slurp work as close as possible to existing fetch/slurp modules. 11 years ago
Paul Durivage 9a52ee4753 Make non-executable 11 years ago
Paul Durivage ec6a386967 Add win_get_url module documentation 11 years ago
Paul Durivage 9eeb4c39f7 Add win_get_url module 11 years ago
Matt Martz 3238268ea3 Remove unneeded code, document creates param and ensure creates only affects state=present 11 years ago
Matt Martz fed9e9087e At state for win_msi and add documentation 11 years ago
Matt Martz 499031ef47 First pass at win_msi.ps1 msi installer 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 57f43ae518 Clean up how we initialize the result psobject 11 years ago
Matt Martz 70936bbf8b A couple of DOCUMENTATION fixes for win_ping and win_stat 11 years ago
Michael DeHaan 289b77d6da Update windows docs in progress. 11 years ago
Michael DeHaan b9f8aac85e Add doc stubs 11 years ago
Michael DeHaan 10706180a7 Add a docs stub for the module. 11 years ago
Matt Martz d30f0e384a setup.ps1 willnot support fact_path and filter to start 11 years ago
Michael DeHaan 3bba3be68b Remove stubs. 11 years ago
Matt Martz 2e3a44d835 Need to call ToString Platform to get the string 11 years ago
Michael DeHaan bbd8228d21 Rename some modules so they can have seperate doc stubs. 11 years ago
Matt Martz ddb7e6669e Add start for powershell setup module 11 years ago
Matt Martz b3b52800f3 Add license header to powersell modules 11 years ago
Matt Martz 4268cb6a2d Add shared functions to module_utils/powershell.ps1 and refactor powershell modules to utilize the common powershell code 11 years ago
Matt Martz 3b5c568b10 Use more simple check for existence of member 11 years ago
Matt Martz fb43772429 Instantiate psobject directly 11 years ago
Chris Church 54e5289f79 Add shell_plugins to abstract shell-specific functions out of runner, add winrm connection plugin, add initial Windows modules. 11 years ago