James Cammarata
fa5386c488
Some additional module cleanup of mistakes made during merging
2016-12-08 11:35:20 -05:00
Matt Davis
cb1888125d
add metadata to doc support ( #18802 )
...
fix broken module docs
change doc AST id extraction to use == instead of in
2016-12-08 11:35:20 -05:00
James Cammarata
011ea55a8f
Relocating extras into lib/ansible/modules/ after merge
2016-12-08 11:35:18 -05:00
James Cammarata
8afa090417
Resolving differences in core modules post-merge
2016-12-08 11:25:36 -05:00
Toshio Kuratomi
7319104552
Refreshed metadata for core modules
2016-12-08 11:25:35 -05:00
Fabio Alessandro Locati
2b0bdd45e8
Unquote urls in YAML - windows ( #5798 )
2016-12-08 11:25:34 -05:00
Matt Davis
ce0412aa85
Fix test failures in win_command/win_shell on Powershell 3
...
Switched to use Exit-Json to avoid JSON escaping bugs in ConvertTo-Json formatter without -Compress option.
2016-12-08 11:25:33 -05:00
Sam Doran
c0c26f83a8
Examples syntax batch7 ( #5624 )
...
* Change example syntax on nxos_feature module
* Change example syntax on nxos_hsrp module
* Change example syntax on nxos_igmp module
* Change example syntax on nxos_interface module
* Change example syntax on nxos_interface_ospf module
* Change example syntax on nxos_ip_interface module
* Change example syntax on nxos_ping module
* Change example syntax on nxos_switchport module
* Change example syntax on nxos_vlan module
* Change example syntax on nxos_vrf module
* Change example syntax on nxos_vrf_interface module
* Change example syntax on nxos_vrrp module
* Change example syntax on meta module
* Change example syntax on set_fact module
* Change example syntax on win_copy module
* Change example syntax on win_file module
* Change example syntax on win_get_url module
Remove escaping of \ characeter in Windows paths since it's no longer required for single quoted or unquoted values when using multi-line YAML syntax.
* Change example syntax on win_lineinfile module
* Change example syntax on win_msi module
* Change example syntax on win_stat module
* Remove nxos_bgp example from nxos_igmp module
* Mark examples as regexp to avoid syntax error
* Cleanup win_copy.py examples
* Cleanup win_file.py examples
* Remove quotes in win_get_url.py examples
* Cleanup quotes and languare in win_lineinfile.py
* Cleanup examples in win_group.py
* Cleanup examples in win_service.py
* Don't use : in documentation because it breaks the YAML syntax check
* Cleanup win_copy.py examples
* Cleanup win_copy.py examples
* Minor change to fix test failure
* Use single quotes
2016-12-08 11:25:33 -05:00
John R Barker
b1c6b9272f
win_msi - Don't list choices twice ( #5684 )
...
* win_msi - Dont list choices twise
http://docs.ansible.com/ansible/win_msi_module.html shows
Choices:
True
True
False
False
As the yes/no are expanded to true/false by the docs generation
* Update win_msi.py
2016-12-08 11:25:32 -05:00
Matt Davis
13a9b98565
Prevent handle inheritance from blocking Windows async_wrapper ( #5666 )
2016-12-08 11:25:32 -05:00
Matt Davis
2c216cdf35
fix JSON junk in win_file state=directory case ( #5427 )
2016-12-08 11:25:24 -05:00
Matt Davis
8e97539e20
fix win_shell/win_command deadlock on large interleaved stdout/stderr ( #5384 )
...
fixes #5229
2016-12-08 11:25:24 -05:00
Matt Davis
dfc2a29bdb
fix win async tempdir deletion failure
2016-12-08 11:25:24 -05:00
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
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00
Pepe Barbe
5dc322b911
Add OS architecture and OS name to the Windows setup module
2016-12-08 11:23:07 -05:00
Jon Hawkesworth
c86ed93f67
remove include of files options only relevant to unix from win_file.py documentation
2016-12-08 11:23:06 -05:00
Brian Coca
f66ed3a85e
minor doc fixes on win_template
2016-12-08 11:23:06 -05:00
Jon Hawkesworth
a9b77e8480
corrected version added which I got wrong while rebasing
2016-12-08 11:23:06 -05:00
Jon Hawkesworth
5b6195e613
Fix win_copy problems described here: https://github.com/ansible/ansible-modules-core/issues/1404 and update documentation.
2016-12-08 11:23:06 -05:00
Brian Coca
523b4d638e
updated version added
2016-12-08 11:23:05 -05:00
James Cammarata
3e72a0657d
Re-reverting windows modules PR #384
2016-12-08 11:23:01 -05:00
Brian Coca
abdb1afa0a
Revert "Merge pull request #384 from jhawkesworth/win_copy_file_template_ansible_modules_core_1" I missed some discussion in devel, these need more work before inclusion
...
This reverts commit 58bfebb0477adda2a676381850038e0abf8c8f00, reversing
changes made to 27dee77ca0449bdb338b2db89e044d1d9b553b4a.
2016-12-08 11:22:34 -05:00
Chris Church
9d0830a181
Change version added in win_user docs to 1.9 for updates that didn't make it into 1.8.
2016-12-08 11:22:34 -05:00
Jon Hawkesworth
44cc1a75ba
Switched to SHA1 checksum instead of MD5
2016-12-08 11:22:32 -05:00
Jon Hawkesworth
67def35795
Adding first pass at win_copy, win_file and win_template modules (include new files).
2016-12-08 11:22:32 -05:00
Chris Church
ff193241b1
Minor win_user fixes based on feedback.
2016-12-08 11:22:30 -05:00
Chris Church
262624ca12
Update win_feature module to work on server 2008 and fail with error message on non-server windows, fix output messages and error handling.
2016-12-08 11:22:30 -05:00
Chris Church
c81c192dcb
Update win_user module to support more user options and group membership changes.
2016-12-08 11:22:30 -05:00
Michael DeHaan
c7e9139a1b
Fix filename error.
2016-12-08 11:22:22 -05:00
Michael DeHaan
ef2a2b9093
package files
2016-12-08 11:22:22 -05:00
Michael DeHaan
213e518165
file extensions!
2016-12-08 11:22:22 -05:00
Michael DeHaan
c7eec45b73
Restructuring.
2016-12-08 11:22:22 -05:00