Commit graph

215 commits

Author SHA1 Message Date
Brian Coca
1873afc29d Merge pull request #2574 from h0nIg/devel_win_lineinfile_acl
win_lineinfile: acl fix
2016-01-12 10:48:54 -05:00
Brian Coca
d0180f2328 really fixed the doc formatting 2016-01-11 19:23:49 -05:00
Brian Coca
a876214bd5 fixed win_feature docs
added version_added for source and fixed some yaml parsing
2016-01-11 18:10:32 -05:00
Trond Hindenes
7085a7b884 update doc 2016-01-08 15:07:58 +01:00
Trond Hindenes
3cb70ebc9d bugfix win_feature.ps1 2016-01-08 14:56:42 +01:00
Trond Hindenes
0cfffa5dbe Add source as optional parameter 2016-01-07 19:36:32 +01:00
nitzmahone
33014c6db1 fix win_file to stop on errors 2016-01-04 16:05:43 -08:00
nitzmahone
11f4340a44 win_get_url doc/strict-mode fixes
plus cleaning up from bad merge
2015-12-19 01:11:35 -08:00
nitzmahone
c9fe542e8c minor win_get_url doc update 2015-12-19 00:20:32 -08:00
T.Kuramochi
3281cad95e 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
2015-12-19 00:20:32 -08:00
Hillel Antonov
e20a4c8ae2 Adding gathering environment variables to gather facts on Windows
making similar in functionality to gather facts on Linux
2015-12-15 11:41:16 -05:00
Hans-Joachim Kliemeck
777edaf3f5 fix problem with file content and high cpu/out of memory errors 2015-12-14 16:04:13 +01:00
Hans-Joachim Kliemeck
9fa758d54c do not move item, instead copy item because acl will be kept 2015-11-27 11:32:54 +01:00
=
3d14397dc0 Fix for 13315 - minute now included in ansible_date_time on windows hosts 2015-11-26 08:58:34 +00:00
Chris Church
ade721cc5d Remove note about only using win_copy for small files. 2015-11-18 17:52:05 -05:00
Toshio Kuratomi
77d3678acf Fix escaping of newline carriage return characters in the documentation 2015-11-06 09:32:06 -08:00
Chris Church
cb36cedabf Merge pull request #1930 from wenottingham/patch-1
win_msi: document extra_args
2015-11-05 12:39:01 -05:00
nitzmahone
3f5d6df5f7 fixed ansible_totalmem fact returning 0
Win32_PhysicalMemory CIM object is busted on some virtual environments, switched
to Win32_ComputerSystem.TotalPhysicalMemory
2015-11-04 17:29:08 -08:00
Corwin Brown
02b3f74f50 Adding Facter 2015-10-28 12:31:45 -05:00
Chris Church
84b1a1a2b7 Merge pull request #2083 from cchurch/win_lineinfile_fixes
Fix win_lineinfile to pass integration tests
2015-10-14 10:19:10 -04:00
Brian Coca
95b10c9fdd Merge pull request #2256 from jhawkesworth/fix_amc_2147
Fix for ansible-modules-core 2147
2015-10-13 20:17:28 -04:00
=
833bf77be1 Fix for ansible modules core 2147 2015-10-13 06:15:25 +01:00
Michael Perzel
6615e618d9 Added date, year and month attributes 2015-10-12 16:16:10 -05:00
Michael Perzel
785ebe2684 Add ansible_date_time to windows facts 2015-10-12 16:02:36 -05:00
fxfitz
6f3cbd7aa2 Fixed spelling mistake: missing 2015-10-05 21:26:52 -05:00
Matt Calhoun
73843693b7 The variable $uppercase_cert_thumbprint cannot be retrieved because it has not been set. 2015-09-29 16:40:22 -04:00
Matt Calhoun
4350188076 The variable $winrm_cert_thumbprint cannot be retrieved because it has not been set. 2015-09-29 16:38:48 -04:00
Matt Calhoun
1d8334674f The variable $https_listener cannot be retrieved because it has not been set. 2015-09-29 16:37:26 -04:00
Matt Calhoun
d8f9c81022 The variable $winrm_https_listener_path cannot be retrieved because it has not been set 2015-09-29 16:35:47 -04:00
Chris Church
323a14808f Revert "Improvements to win_feature" 2015-09-17 14:44:36 -04:00
James Cammarata
78e756b05d Merge pull request #1564 from trondhindenes/win_features_improvements_v2
Improvements to win_feature
2015-09-17 11:25:07 -04:00
Chris Church
82c1cc7989 Revert "Rename powershell versions of setup and slurp so they don't shadow the python versions of these modules."
This reverts commit d4e16b0c73.
2015-09-16 22:22:35 -04:00
Phil
bddcf876a7 uses get-attr and fixes file path issues by escaping quotes around path 2015-09-16 20:34:56 -05:00
Toshio Kuratomi
d4e16b0c73 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
2015-09-15 14:22:19 -07:00
Chris Church
0e3f7c92d7 Fix win_lineinfile to pass integration tests when strict mode is enabled. 2015-09-15 16:26:15 -04:00
Phil
21f56aef77 merge devel and fix conflicts 2015-09-11 14:23:03 -05:00
Brian Coca
14ebc19897 fixed doc issues with win_lineinfile 2015-09-10 16:18:35 -04:00
Brian Coca
05c3b3ea15 minor doc fix 2015-09-10 09:07:59 -04:00
Benno Joy
2fd511b906 Merge pull request #1839 from brianlloyd/win_lineinfile
Windows implementation of lineinfile and related documentation
2015-09-08 12:06:04 +05:30
Brian Coca
d55a4d59dc Merge pull request #1956 from cchurch/strict_mode_fixes
Update core modules to fix strict mode errors
2015-09-04 12:48:23 -04:00
Brian Coca
d8f45bab41 Merge pull request #1607 from abriening/win_get_url_updates
Adds basic authentication & skip certificate validation to win_get_ur…
2015-09-04 12:47:19 -04:00
Chris Church
1d074d43aa * 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
2015-08-22 19:01:11 -04:00
nitzmahone
2a5f3754e7 added windows facts ansible_lastboot, ansible_uptime_seconds
switched OS object to Get-CimInstance since we need a DateTime object for lastbootuptime
2015-08-21 13:37:29 -07:00
Bill Nottingham
c93456adc3 win_msi: document extra_args
The extra_args parameter was not documented. It's needed for installing some MSIs.
2015-08-18 10:14:59 -04:00
Brian Coca
7f01246bb5 updated win_file version_added
fixes #1893
2015-08-10 10:11:40 -04:00
Chris Church
bad636152a Add check mode support for Windows modules that don't modify the remote system. 2015-07-31 18:04:34 -04:00
Brian Coca
697307f88c Merge pull request #1670 from mikeputnam/issue-1643-gpl-header
Add missing GPLv3 License header
2015-07-30 14:39:44 -04:00
Brian Lloyd
fc2a33b966 Windows implementation of lineinfile and related documentation 2015-07-29 19:38:15 -04:00
brannon
4a30e35e53 Fix windows feature example to actually install IIS 2015-07-29 12:23:37 -07:00
Chris Church
313381981e Save user after creating before trying to read/set other properties. Fixes #1241 2015-07-22 03:14:20 -04:00
Chris Church
a6866be882 Merge pull request #1473 from Constantin07/patch-1
Added additional stat output values
2015-07-22 01:58:51 -04:00
Andrew Briening
625fb1e182 Show the exception messages 2015-07-16 15:01:09 -04:00
Andrew Briening
8e7d9be02b Adds basic authentication & skip certificate validation to win_get_url module 2015-07-16 14:46:54 -04:00
Chris Church
b106a83d0a Set force=yes as the default, add force parameter to module docs. 2015-07-10 16:34:46 -04:00
Greg DeKoenigsberg
b1f8f0d48d Merge pull request #1485 from talcloudshare/win_get_url-modified
win_get_url re-download file only if modified
2015-07-10 12:06:03 -04:00
Tal Auslander
c786202ee4 use ConvertTo-Bool for the force parameter 2015-07-06 11:22:23 +03:00
Mike Putnam
6c0e264806 Add missing GPLv3 License header
Fixes #1643
2015-07-03 22:57:53 -05:00
Brian Coca
d398ea18ec Merge pull request #974 from ianclegg/devel
Fix support for comma seperated feature names in the name parameter of...
2015-07-03 21:27:34 -04:00
Matt Martz
c2d0fbd45b Remove unnecessary imports in a docs only file for win_copy 2015-07-01 09:39:19 -05:00
Andreas Reischuck
02ea210db9 fixed win_file state=touch 2015-06-30 04:06:11 -04:00
Tal Auslander
e80073ff87 stop reading from url on error 2015-06-28 13:45:48 +03:00
Phil
3db78457ce merge devel 2015-06-25 19:51:05 -05:00
Trond Hindenes
aa834fe1c1 updated win_feature.ps1 with improvements 2015-06-22 08:06:48 +00:00
Brian Coca
cf273bbaeb Merge pull request #1557 from jhawkesworth/win_copy_limitation_documentation
document file size limit for win_copy module
2015-06-19 10:09:07 -04:00
Brian Coca
dd0cc9d611 Merge pull request #1100 from elventear/win_setup
Add OS architecture and OS name to the Windows setup module
2015-06-19 09:30:57 -04:00
Jon Hawkesworth
93c2f9245a document file size limit for win_copy module 2015-06-19 08:52:43 +01:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
Brian Coca
f7bcb3e9b7 Merge pull request #1504 from jhawkesworth/fix_win_file_doc_error
documentation: remove include of files options only relevant to unix from win_file.py
2015-06-11 14:14:16 -04:00
Jon Hawkesworth
d6696aca9f remove include of files options only relevant to unix from win_file.py documentation 2015-06-11 18:44:31 +01:00
Brian Coca
2c8b765cf0 minor doc fixes on win_template 2015-06-11 11:35:49 -04:00
Jon Hawkesworth
5e500c6464 corrected version added which I got wrong while rebasing 2015-06-10 18:53:22 +01:00
Jon Hawkesworth
4c917d47fc Fix win_copy problems described here: https://github.com/ansible/ansible-modules-core/issues/1404
and update documentation.
2015-06-10 18:44:55 +01:00
Brian Coca
16ba1fc0e9 updated version added 2015-06-10 11:08:29 -04:00
Tal Auslander
1730764531 add force parameter to win_get_url 2015-06-09 11:14:44 +03:00
Tal Auslander
9074aa4c93 win_get_url re-download file only if modified 2015-06-08 14:45:20 +03:00
Constantin
06aeabc5fb 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)
2015-06-05 14:35:26 +01:00
James Cammarata
b5399d3446 Re-reverting windows modules PR #384 2015-05-22 13:28:24 -05:00
schwartzmx
1f55b45edd 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
2015-04-07 21:28:47 -05:00
Pepe Barbe
fb7ff9271a Add OS architecture and OS name to the Windows setup module 2015-04-06 23:25:29 -05:00
Ian Clegg
bdc28a6bb3 Added support for comma seperated feature names in the name parameter of the win_feature module 2015-03-20 10:34:36 +00:00
Brian Coca
9d196f7b47 Merge pull request #535 from bcoca/revert_win_mods
Revert "Merge pull request #384
2014-12-24 08:42:02 -05:00
Chris Church
0a297e54ba Change version added in win_user docs to 1.9 for updates that didn't make it into 1.8. 2014-12-19 03:07:47 -05:00
Brian Coca
a942e5f853 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 58bfebb047, reversing
changes made to 27dee77ca0.
2014-12-17 12:48:01 -05:00
Toshio Kuratomi
51ed13b887 Fix documentation build 2014-12-16 11:50:41 -08:00
Brian Coca
54b836f0b8 Merge pull request #89 from cchurch/win_feature_updates
Updates to win_feature module
2014-12-15 20:15:13 -05:00
Brian Coca
58bfebb047 Merge pull request #384 from jhawkesworth/win_copy_file_template_ansible_modules_core_1
Win copy/file/template modules (for ansible-modules-core)
2014-12-15 20:10:18 -05:00
Jon Hawkesworth
08c5cc06c6 Switched to SHA1 checksum instead of MD5 2014-12-11 21:50:17 +00:00
Jon Hawkesworth
732491eb93 Adding first pass at win_copy, win_file and win_template modules (include new files). 2014-12-11 21:50:17 +00:00
Jon Hawkesworth
2e60425b71 Adding first pass at win_copy, win_file and win_template modules. 2014-12-11 21:50:17 +00:00
Chris Church
07faee61de Minor win_user fixes based on feedback. 2014-11-24 00:43:55 -05:00
Chris Church
c9f8dcff99 Update win_feature module to work on server 2008 and fail with error message on non-server windows, fix output messages and error handling. 2014-09-30 16:41:34 -04:00
Chris Church
3a40d79cff Update win_user module to support more user options and group membership changes. 2014-09-30 11:51:05 -04:00
Michael DeHaan
617a52b20d Fix filename error. 2014-09-26 17:06:31 -04:00
Michael DeHaan
385a037cd6 package files 2014-09-26 11:05:47 -04:00
Michael DeHaan
c8e1a2077e file extensions! 2014-09-26 10:37:56 -04:00
Michael DeHaan
417309a626 Restructuring. 2014-09-26 10:13:26 -04: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