summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/files/copy.py
Commit message (Collapse)AuthorAgeFilesLines
* Read directory_mode as 'raw' typeBrendan Almonte2017-05-231-1/+1
| | | | | | | | | Reads the directory_mode param as 'raw' type to mirror the same behavior as mode. This'll cause non-quoted values to be represented as an int, rather than a str. Covered by 'assert recursive copied directories mode' test. Fixes #24202
* let user control "auto-de-vault" (#22739)Brian Coca2017-03-241-0/+1
| | | | | | * added option to toggle off autodevaulting * fixes per feedbazck
* E501 fixes (#22879)Matt Martz2017-03-221-1/+2
|
* New metadata 1.0 (#22587)Toshio Kuratomi2017-03-141-3/+4
| | | | | | | | | | | | | | | | Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version
* Avoid having module documentation links to itself (#21329)Dag Wieers2017-02-131-1/+1
| | | | | | | | | * Avoid having module documentation links to itself A lot of modules use M(own_module) in their documentation causing a link in the documentation to itself. * Make note more clear now
* Fix default value for remote_src (#21136)Tuomas-Matti Soikkeli2017-02-091-1/+1
| | | Default value is clearly False, fixed it to correct value.
* Refreshed metadata for core modulesToshio Kuratomi2016-12-081-0/+4
|
* Change examples syntax on copy moduleSam Doran2016-12-081-5/+29
|
* fix the behavior that the dest is directoryzuiurs2016-12-081-6/+7
| | | | | | | This fixes the behavior that the dest is directory, when we set the "force: no" argument. To be join the dest and the src's basename, before checking the "force" argument.
* Python3 fixes to copy, file, and stat so that the connection integration ↵Toshio Kuratomi2016-12-081-42/+56
| | | | | | | | | | tests can be run (#4632) * Python3 fixes to copy, file, and stat so that the connection integration tests can be run * Forgot to audit the helper functions as well. * Fix dest to refledt b_dest (found by @mattclay)
* Clarify what checksum algorithm is used by copy modules (#4198)Gennady Trafimenkov2016-12-081-1/+1
|
* unsafe writes! (#4314)Brian Coca2016-12-081-5/+4
| | | | | | | | * unsafe writes! * moved unsafe_write docs and args to file common * added unsafe_writes option handling
* stop trying to set permissions in check modeBrian Coca2016-12-081-2/+3
| | | | fixes #4195
* Do not copy file if running on check modeKeisuke Kamada2016-12-081-27/+28
|
* Convert the whole files/ directory to py3 syntax (#3685)Michael Scherer2016-12-081-1/+2
|
* Also show stdout when validation fails. This fixes #2498Bert Van Vreckem2016-12-081-2/+2
|
* added follow to specific modules that support itBrian Coca2016-12-081-0/+7
| | | | was removed from common file docs
* recursive copy is not available(yet) on remote_srcBrian Coca2016-12-081-2/+3
|
* Fix typo in the copy module error messageGuruprasad2016-12-081-1/+1
| | | | Fix the typos in the error message shown on trying to use remote_src=yes for copying directories
* cleaner error on recursive remote copyBrian Coca2016-12-081-2/+4
| | | | | TODO: add recursive copy support when remote_src=yes probably need to make shared the logic in the action plugin.
* Fix doc inconsistency (#2630)Michael Scherer2016-12-081-3/+3
|
* added a reference to the template module for clarityAdam Fields2016-12-081-1/+1
|
* This fixes copy with the remote_src optionMaarten Claes2016-12-081-1/+1
| | | | | It was broken in 6e37f1dcef0 when the remote_src was added. Need to pass the absolute path to copy2 instead of a tuple.
* fixed remote_src support, now actually copies and does not moveBrian Coca2016-12-081-3/+10
|
* documented new remote_src optionBrian Coca2016-12-081-0/+7
|
* Fix obvious copy-paste error in module docsMarius Gedminas2016-12-081-1/+1
|
* In copy, set the mode before running th validationJames Cammarata2016-12-081-0/+6
| | | | | | | Because some programs that do validation (like visudo) may require the permissions to be more restricted. Fixes ansible/ansible#11385
* fixed fragment docsBrian Coca2016-12-081-3/+4
|
* Move validate command into doc fragment and fix a few typosJeff Widman2016-12-081-9/+2
|
* Proper author info for all remaining modulesGreg DeKoenigsberg2016-12-081-1/+3
|
* updated content description to discourage using as a tempalte moduleBrian Coca2016-12-081-0/+1
|
* switched to use python's built in os.separator vs using /Brian Coca2016-12-081-1/+1
|
* fix to return vals docsBrian Coca2016-12-081-2/+2
|
* removed always for success, as data wont show on failBrian Coca2016-12-081-9/+9
|
* draft for documenting module returnsBrian Coca2016-12-081-0/+62
|
* Fix for recursion traceback in copy with relative pathsToshio Kuratomi2016-12-081-1/+1
| | | | | | | | This is a further fix for: https://github.com/ansible/ansible/issues/9092 when the relative path contains a subdirectory. Like: ansible localhost -m copy -a 'src=/etc/group dest=foo/bar/'
* Fix old ticket #9092 where a playbook can enter in recursionMichael Scherer2016-12-081-1/+1
| | | | | | | | | | | This can be tested with this command : ansible -c local -m copy -a 'src=/etc/group dest=foo/' all This is a corner case of the algorithm used to find how we should copy recursively a folder, and this commit detect it and avoid it. Check https://github.com/ansible/ansible/issues/9092 for the story
* Add mention of fetch module to the copy module docs.Jeff Geerling2016-12-081-1/+1
|
* Move from md5 to sha1 to work on FIPS-140 enabled systemsToshio Kuratomi2016-12-081-5/+10
|
* file extensions!Michael DeHaan2016-12-081-0/+254