Commit Graph

169 Commits (d3c17d632b23e4ce5552e43e44b91ee138fc6aa4)

Author SHA1 Message Date
Matt Davis 73f77e2af6 switch win async to use Win32 CreateProcess
should fix flaky async startup behavior where watchdog/module exec starts and immediately dies
2016-12-08 11:25:24 -05:00
John R Barker 25b6492d37 Bulk spelling improvement to modules-core (#5225)
* Correct spelling mistakes

* Correct more spelling issues

* merge conflict

* Revert typo in parms
2016-12-08 11:25:20 -05:00
Matt Davis e2f66abe73 fixed windows setup to run in check_mode 2016-12-08 11:25:18 -05:00
Matt Davis 48b0cb750c (re)add post-watchdog-launch sleep to Windows async_wrapper (#5122)
fixed apparent race where subprocess appears to never start
2016-12-08 11:25:17 -05:00
Matt Davis 66a1b15f89 remove broken ansible_user_uid fact from Windows setup 2016-12-08 11:25:15 -05:00
Trond Hindenes 0da88d4744 win_feature_docs_update (#4421) 2016-12-08 11:25:12 -05:00
Matt Davis 6daa34e1c5 add win_shell/win_command modules + docs (#4827) 2016-12-08 11:25:05 -05:00
nitzmahone 915b59a6d5 Fix win_user issue with disabled accounts/expired passwords
Disabled and password-expired accounts cannot call ValidatePassword successfully

fixed #4369
2016-12-08 11:25:04 -05:00
Matt Davis 009ebf619b fix async_wrapper start suspended race (#4718)
Main thread in started-suspended process may not be immediately resumable on slow targets- poll for proper state for awhile before attempting resume
2016-12-08 11:25:02 -05:00
Matt Davis 6099e6d19e Windows async module support (#4710)
Powershell impls of async_wrapper, async_status- associated tests and async action changes are in https://github.com/ansible/ansible/pull/17400.
2016-12-08 11:25:02 -05:00
Gennady Trafimenkov 7ea7564bf4 Clarify what checksum algorithm is used by copy modules (#4198) 2016-12-08 11:24:54 -05:00
Richard Levenberg 4943d329a4 handle multiple winrm listeners (#4142)
* handle multiple winrm listeners

* use the sorterd array
2016-12-08 11:24:43 -05:00
nitzmahone b51a1e175e minor win_template doc corrections 2016-12-08 11:24:41 -05:00
nitzmahone 1a4804cc60 fixes to windows setup
coerce multi-socket win32_processor to a single value
WindowsIdentity.Label doesn't exist on .NET 4.0
2016-12-08 11:24:40 -05:00
Dag Wieers df2ef26bc7 Comment out $win32_cs.SystemFamily, cfr. @nitzmahone
Since it fails on everything pre-10/2016
2016-12-08 11:24:40 -05:00
Dag Wieers 35b9810e39 Fix ansible_distribution and weekday locale (as hinted by @nitzmahone) 2016-12-08 11:24:40 -05:00
Dag Wieers 36d0bac0a3 Retain an important note regarding Win32_PhysicalMemory on virtual platforms 2016-12-08 11:24:40 -05:00
Dag Wieers efaaa79157 Ensure we are using an English locale for date formatting. (as hinted by @nitzmahone) 2016-12-08 11:24:40 -05:00
Dag Wieers 790adc126f Added CPU information comparable to Linux 2016-12-08 11:24:39 -05:00
jhawkesworth@users.noreply.github.com 2090304511 double backslashed all single backslashes to keep travis happy 2016-12-08 11:24:39 -05:00
Dag Wieers dc432c5697 Added more properties 2016-12-08 11:24:39 -05:00
Dag Wieers f8b0cf50b4 Format BIOS date string like on Linux 2016-12-08 11:24:39 -05:00
Dag Wieers 457ccc2e73 win_setup: Add missing properties
We add some basic properties for Windows that are available on other platforms.
2016-12-08 11:24:39 -05:00
jhawkesworth@users.noreply.github.com d3d108e13e document how force=no works for win_get_url and add RETURN 2016-12-08 11:24:39 -05:00
Daniel Petty 6441556b98 fixed $source null check, reference to $Params
$source check causes:
FAILED! => {"changed": false, "failed": true, "msg": "A parameter cannot be found that matches parameter name 'Source'."}

$Params.Remove causes:
FAILED! => {"changed": false, "failed": true, "msg": "Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named 'Remove'."}
2016-12-08 11:24:39 -05:00
nitzmahone 363ff55445 StrictMode fixes for win_get_url 2016-12-08 11:24:37 -05:00
nitzmahone e7075f3e93 rename ansible_winrm_certificate_expires fact to avoid collision with connection vars 2016-12-08 11:24:37 -05:00
Trond Hindenes 7747be71b4 Return reboot pending as true/false 2016-12-08 11:24:35 -05:00
Toshio Kuratomi 7d9fb08e1a Py3 exclude list (#3698)
* Fix a few modules to pass syntax checks under python3

* Move from a whitelist of modules to check for python3 compat to a blacklist
2016-12-08 11:24:29 -05:00
jhawkesworth 2042d948db fix formatting to avoid smart quotes, which breaks ability to copy and paste the jinja2 header from the web docs (#3671) 2016-12-08 11:24:28 -05:00
Toshio Kuratomi 291e00d43a Docs fixes 2016-12-08 11:24:28 -05:00
John R Barker d13046a905 ansible-validate-modules part 4: Enable check on ansible-modules-core (#3526)
* Call ansible-validate-modules

* Correct quotes + add newline
2016-12-08 11:24:26 -05:00
nitzmahone bc4510b0d4 docs for win_reboot action 2016-12-08 11:24:20 -05:00
Dreamcat4 eeabebdd6c fix: win_get_url - fixes for strict-mode 2016-12-08 11:24:20 -05:00
Dreamcat4 c85a82ad00 fix: win_stat - fixes for strict-mode 2016-12-08 11:24:19 -05:00
nitzmahone 64cd7903f2 fix win_user type checking
Fixed type checking to be more idiomatic powershell, also fixes a slew of StrictMode issues and gets error handling back to originally-intended behavior.
2016-12-08 11:24:16 -05:00
nitzmahone eb3243c15a fix win_stat get_checksum alias issue
made it impossible to prevent gathering checksum without setting both get_md5 and get_checksum false
2016-12-08 11:24:14 -05:00
jhawkesworth@users.noreply.github.com 63f8bdf782 Use HEAD request to determine if file should be downloaded, ensure download method is the same regardless of force mode. 2016-12-08 11:24:13 -05:00
davidobrien1 a874e1e25e Change fact invocation from dotsourcing to ampersand so that scripts do not execute in global scope. 2016-12-08 11:24:10 -05:00
David O'Brien ce7a86b4ce Add documentation to setup.py and remove use of $params.fact_path in setup.ps1 2016-12-08 11:24:09 -05:00
Matt Martz b85d3f32da Add get_checksum option to win_stat to work with new use of the stat module for checksumming 2016-12-08 11:24:08 -05:00
Matt Martz aaf762573e Various simple linting type cleanups on modules 2016-12-08 11:24:06 -05:00
Jose Moreira cc173b445e Fixed module doc typos 2016-12-08 11:24:06 -05:00
J Levitt 9456ece4b1 Make it clear that the dest path delimiters must be escaped
Make it clear that the dest path delimiters must be escaped
2016-12-08 11:24:02 -05:00
Toshio Kuratomi f6aa1ff9a4 Remove duplicate documentation fields 2016-12-08 11:24:01 -05:00
nitzmahone 821fb6c0ab fix win_get_url var renames ala xpicio fix PR #2378
reimplements #2378 sans formatting merge conflicts
2016-12-08 11:23:58 -05:00
nitzmahone fef6e5102e fix version_added on win_msi wait arg 2016-12-08 11:23:58 -05:00
Hillel Antonov 8d5cebd597 Adding gathering environment variables to gather facts on Windows making similar in functionality to gather facts on Linux 2016-12-08 11:23:58 -05:00
Hans-Joachim Kliemeck 1354ef0285 fix problem with file content and high cpu/out of memory errors 2016-12-08 11:23:58 -05:00
Hans-Joachim Kliemeck 41ab7f8aed do not move item, instead copy item because acl will be kept 2016-12-08 11:23:57 -05:00
Corwin Brown c075c000c8 Adding Facter 2016-12-08 11:23:57 -05:00
Phil 3781c5ccb0 uses get-attr and fixes file path issues by escaping quotes around path 2016-12-08 11:23:57 -05:00
schwartzmx 5ff4d219e0 updates win_msi to allow install to wait - adds additional wait param - updates to use Start-Process to allow -Wait - this will wait for install/uninstall to complete before continue 2016-12-08 11:23:57 -05:00
Brian Coca 3afaa2fef4 really fixed the doc formatting 2016-12-08 11:23:57 -05:00
Brian Coca f5ddbd5c49 fixed win_feature docs
added version_added for source and fixed some yaml parsing
2016-12-08 11:23:56 -05:00
Trond Hindenes abcae97422 update doc 2016-12-08 11:23:56 -05:00
Trond Hindenes 37a24cc1b1 bugfix win_feature.ps1 2016-12-08 11:23:56 -05:00
Trond Hindenes 21b79123a4 Add source as optional parameter 2016-12-08 11:23:56 -05:00
nitzmahone 60ca6e2f85 fix win_file to stop on errors 2016-12-08 11:23:56 -05:00
nitzmahone 317ea13759 win_get_url doc/strict-mode fixes
plus cleaning up from bad merge
2016-12-08 11:23:54 -05:00
nitzmahone feb077261e minor win_get_url doc update 2016-12-08 11:23:54 -05:00
T.Kuramochi dfda2e9f57 Add HTTP Proxy options
Update a document file for win_get_url.ps1.

Update add a prefix proxy_ for this variables

Update a document file for win_get_url.ps1.

Update win_get_url.ps1 20150907
2016-12-08 11:23:54 -05:00
jhawkesworth@users.noreply.github.com 5453d1e959 Fix for 13315 - minute now included in ansible_date_time on windows hosts 2016-12-08 11:23:49 -05:00
Chris Church fea4308c69 Remove note about only using win_copy for small files. 2016-12-08 11:23:48 -05:00
Toshio Kuratomi 2b8a7e88e9 Fix escaping of newline carriage return characters in the documentation 2016-12-08 11:23:47 -05:00
nitzmahone 45fff5d939 fixed ansible_totalmem fact returning 0
Win32_PhysicalMemory CIM object is busted on some virtual environments, switched
to Win32_ComputerSystem.TotalPhysicalMemory
2016-12-08 11:23:47 -05:00
Bill Nottingham 8fdf18cfa1 win_msi: document extra_args
The extra_args parameter was not documented. It's needed for installing some MSIs.
2016-12-08 11:23:45 -05:00
jhawkesworth@users.noreply.github.com 183430628b Fix for ansible modules core 2147 2016-12-08 11:23:40 -05:00
Michael Perzel 1fc2c8c324 Added date, year and month attributes 2016-12-08 11:23:40 -05:00
Michael Perzel 7ee0fa3b4b Add ansible_date_time to windows facts 2016-12-08 11:23:40 -05:00
fxfitz 61cdc2ae90 Fixed spelling mistake: missing 2016-12-08 11:23:39 -05:00
Matt Calhoun 52f9c3468c The variable $uppercase_cert_thumbprint cannot be retrieved because it has not been set. 2016-12-08 11:23:38 -05:00
Matt Calhoun a9d954b087 The variable $winrm_cert_thumbprint cannot be retrieved because it has not been set. 2016-12-08 11:23:38 -05:00
Matt Calhoun 70f7f144e0 The variable $https_listener cannot be retrieved because it has not been set. 2016-12-08 11:23:38 -05:00
Matt Calhoun 72970ab7a8 The variable $winrm_https_listener_path cannot be retrieved because it has not been set 2016-12-08 11:23:38 -05:00
Chris Church 7eb7efb737 Fix win_lineinfile to pass integration tests when strict mode is enabled. 2016-12-08 11:23:36 -05:00
Chris Church c56db7920a Revert "Improvements to win_feature" 2016-12-08 11:23:36 -05:00
Chris Church c35d7304c9 Revert "Rename powershell versions of setup and slurp so they don't shadow the python versions of these modules."
This reverts commit d4e16b0c736081b7a41158063f3edef8f235adda.
2016-12-08 11:23:36 -05:00
Toshio Kuratomi 8ce7348d52 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
2016-12-08 11:23:35 -05:00
Chris Church 9ed0a5a920 * 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 2016-12-08 11:23:34 -05:00
nitzmahone 51154a6991 added windows facts ansible_lastboot, ansible_uptime_seconds
switched OS object to Get-CimInstance since we need a DateTime object for lastbootuptime
2016-12-08 11:23:32 -05:00
Brian Lloyd e6ffb60855 Windows implementation of lineinfile and related documentation 2016-12-08 11:23:31 -05:00
Andrew Briening bd531f87bc Show the exception messages 2016-12-08 11:23:31 -05:00
Brian Coca 4856f78031 updated win_file version_added fixes #1893 2016-12-08 11:23:30 -05:00
Chris Church 1b6edab87c Add check mode support for Windows modules that don't modify the remote system. 2016-12-08 11:23:29 -05:00
Andrew Briening a886690309 Adds basic authentication & skip certificate validation to win_get_url module 2016-12-08 11:23:29 -05:00
Trond Hindenes 1ee2ddcbf4 updated win_feature.ps1 with improvements 2016-12-08 11:23:29 -05:00
brannon 824503fc19 Fix windows feature example to actually install IIS 2016-12-08 11:23:27 -05:00
Mike Putnam 9623cd570c Add missing GPLv3 License header
Fixes #1643
2016-12-08 11:23:25 -05:00
Chris Church d8f5a34d85 Save user after creating before trying to read/set other properties. Fixes #1241 2016-12-08 11:23:24 -05:00
Constantin 7a7b8b913a Added additional stat output values
Included in the output as well:
 - file extension
 - file attributes
 - file owner
 - creation, last access and last write timestamps (in UNIX format)
2016-12-08 11:23:24 -05:00
Chris Church 31a01305ba Set force=yes as the default, add force parameter to module docs. 2016-12-08 11:23:20 -05:00
Tal Auslander 8766641871 use ConvertTo-Bool for the force parameter 2016-12-08 11:23:19 -05:00
Tal Auslander 64f19fc4c6 stop reading from url on error 2016-12-08 11:23:19 -05:00
Tal Auslander 9c6d829991 add force parameter to win_get_url 2016-12-08 11:23:19 -05:00
Tal Auslander 26a54897a2 win_get_url re-download file only if modified 2016-12-08 11:23:19 -05:00
Matt Martz f33a8b09a9 Remove unnecessary imports in a docs only file for win_copy 2016-12-08 11:23:16 -05:00
Andreas Reischuck 3cc14a0a65 fixed win_file state=touch 2016-12-08 11:23:15 -05:00
Ian Clegg f9c294f1ad Added support for comma seperated feature names in the name parameter of the win_feature module 2016-12-08 11:23:13 -05:00
Jon Hawkesworth a00d86946d document file size limit for win_copy module 2016-12-08 11:23:10 -05:00