Jordan Borean
6f9f337a67
standardise the powershell FileUtils ( #34969 )
2018-01-17 14:16:34 +10:00
Jordan Borean
e3f44b74bd
win_stat: better support for links ( #33005 )
2017-12-12 14:07:56 +10:00
Jordan Borean
8386201242
add deprecation for stat get_md5 ( #33002 )
2017-11-27 18:58:55 -05:00
Jordan Borean
e16e6313c7
windows: fix for checking locked system files ( #30665 )
...
* fix for checking locked system files
* moved functions to share module util and created tests
* fixed windows-paths test based on win_stat changes
2017-11-15 19:04:03 -05:00
Jordan Borean
107e177658
win_stat: add explicit error message when file is in use ( #27826 )
...
* win_stat: add explicit error message when file is in use
* make the lock last a bit longer
2017-08-07 12:04:42 +10:00
Dag Wieers
60276b60a2
win_stat: Add stat.isreg support ( #27732 )
...
* win_stat: Add stat.isreg support
This PR includes the following changes:
- Adds stat.isreg support (cfr. the stat module)
- Always returns stat.isdir, stat.islnk, stat.isreg, stat.isshared
* Remove the controversial part
2017-08-04 13:55:58 +10:00
Jordan Borean
4d1b97d1ae
win_stat change return islink to islnk to match stat ( #23196 )
2017-04-03 11:38:34 -07:00
Dag Wieers
01afed4dc5
win_stat: Module cleanup ( #20672 )
...
* win_stat: Clean up and bugfixes
- Fix an issue where LastWriteTime was actually LastAccessTime
- Return lnk_source = $null for a broken link
- Remove a useless -Replace '\\','\\'
- Make use of new parameter options (-type and -aliases)
* Deprecate get_md5 with checksum_algorithm: md5
As suggested in comments we deprecate get_md5 and internally
replace it with `get_checksum` and `checksum_algorithm: md5`.
We show a warning to the user about this change.
Also remove empty warnings output. This simplifies modules code
(e.g. standard empty list is provided and snippets can add items).
* Adapted to use the new Add-DeprecationWarning() mechanism
* Revert to original formatting
2017-02-23 22:58:51 -08:00
Jordan Borean
971783a7fd
Feature/win stat extra info ( #19148 )
...
* Added more return results to win_stat
* Changed Win2012 methods to support older versions in setup
* staging of the tests to work with older servers
2017-01-27 14:51:12 -08:00
Dreamcat4
c85a82ad00
fix: win_stat - fixes for strict-mode
2016-12-08 11:24:19 -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
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
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
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
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
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
Jon Hawkesworth
44cc1a75ba
Switched to SHA1 checksum instead of MD5
2016-12-08 11:22:32 -05:00
Michael DeHaan
c7eec45b73
Restructuring.
2016-12-08 11:22:22 -05:00