Fabio Alessandro Locati
75bcec0ef5
Fix conflict and typos ( #18831 )
2016-12-15 14:50:22 -08:00
Fabio Alessandro Locati
066872cdc6
Improve examples ( #18830 )
2016-12-15 10:43:50 -08:00
Fabio Alessandro Locati
8dc3b60d0f
Remove unneeded quotes - windows/win_uri.py ( #18828 )
2016-12-15 10:38:02 -08:00
Fabio Alessandro Locati
cf5449c5d9
Remove unneeded quotes - windows/win_unzip.py ( #18827 )
2016-12-15 10:37:02 -08:00
Fabio Alessandro Locati
439f98005f
Highly rewrite and fix the examples - windows/win_iis_webbinding.py ( #18823 )
2016-12-15 10:34:20 -08:00
Carlos E. Garcia
0b8011436d
minor spelling changes
2016-12-13 13:51:13 -05:00
Matt Clay
ac7edef2be
Fix modules with documentation errors.
2016-12-09 16:08:26 -07:00
Fabio Alessandro Locati
60f6bab430
Remove x bit - windows/win_copy.py ( #18824 )
2016-12-09 08:30:27 -05:00
Matt Clay
c709b22e5c
Fix differences with devel.
2016-12-08 11:35:21 -05:00
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