summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/files/replace.py
Commit message (Collapse)AuthorAgeFilesLines
* ported fix from ansible-core #5639Brian Coca2017-03-211-0/+13
| | | | | From 3d09c94faeaa52075055f23744d8b52581c59bb2 Mon Sep 17 00:00:00 2001 Evan Kaufman <evan@digitalflophouse.com>
* corrected docsBrian Coca2017-03-161-5/+5
|
* Add parameters to limit replace to certain section of the fileJens Carl2017-03-161-2/+68
| | | | | Add parameters 'after' and 'before' to limit the replacement/remove of lines to a certain section of the file.
* 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
* Removes expanduser callsTim Rupp2017-02-271-1/+1
| | | | | The usage of type='path' includes the expanduser call itself. This patch removes its duplicate usage. Related to #12263
* Update validate-modules (#20932)Matt Martz2017-02-021-6/+4
| | | | | | | | | | | | | | * Update validate-modules * Validates ANSIBLE_METADATA * Ensures imports happen after documentation vars * Some pep8 cleanup * Clean up some left over unneeded code * Update modules for new module guidelines and validate-modules checks * Update imports for ec2_vpc_route_table and ec2_vpc_nat_gateway
* Remove duplicate import.Matt Clay2017-01-281-1/+0
|
* Consistent path attribute for file-related modulesDag Wieers2017-01-131-24/+30
| | | | | | | | Not all file-related modules consistently use "path" as the attribute to specify a single filename, some use "dest", others use "name". Most do have aliases for either "name" or "destfile". This change makes "path" the default attribute for (single) file-related modules, but also adds "dest" and "name" as aliases, so that people can use a consistent way of attributing paths, but also to ensure backward compatibility with existing playbooks. NOTE: The reason for changing this, is that it makes Ansible needlessly harder to use if you have to remember that e.g. the xattr module requires the name attribute, the lineinfile module requires a dest attribute, and the stat module requires a path attribute.
* Handle byte/string conversion on read/write with text module_utils (#19188)Evan Kaufman2016-12-111-2/+4
| | | Fixes ansible/ansible-modules-core#5840, moved from ansible/ansible-modules-core#5847
* Resolving differences in core modules post-mergeJames Cammarata2016-12-081-2/+3
|
* Refreshed metadata for core modulesToshio Kuratomi2016-12-081-0/+4
|
* Change example syntax on replace moduleSam Doran2016-12-081-5/+18
|
* Exposed backup file path, simplified result args (#5364)Evan Kaufman2016-12-081-13/+10
| | | | Fixes #245
* Declare empty diff dict ahead of time (#4646)Evan Kaufman2016-12-081-0/+1
| | | | Fixes #4634
* Implemented file content diff for replace module (#4479)Evan Kaufman2016-12-081-1/+11
|
* unsafe writes! (#4314)Brian Coca2016-12-081-1/+1
| | | | | | | | * unsafe writes! * moved unsafe_write docs and args to file common * added unsafe_writes option handling
* added follow to specific modules that support itBrian Coca2016-12-081-0/+7
| | | | was removed from common file docs
* Move validate command into doc fragment and fix a few typosJeff Widman2016-12-081-6/+1
|
* Proper author info for all remaining modulesGreg DeKoenigsberg2016-12-081-1/+1
|
* Update module "imports" to new styleToshio Kuratomi2016-12-081-2/+3
| | | | Fixes #1351
* Fix #10059 - replace module does not obey follow=yessysadmin752016-12-081-0/+2
|
* Adding file doc fragment to those modules in files/ missing itJames Cammarata2016-12-081-0/+1
|
* file extensions!Michael DeHaan2016-12-081-0/+162