Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refreshed metadata for extras modules | Toshio Kuratomi | 2016-12-06 | 1 | -0/+4 |
| | |||||
* | Native YAML - files (#3608) | Fabio Alessandro Locati | 2016-12-01 | 1 | -3/+9 |
| | |||||
* | Archive is being added in 2.3 rather than 2.2 | Toshio Kuratomi | 2016-11-02 | 1 | -1/+1 |
| | |||||
* | Fix `archive` truncating archived file names based on prefix length (#3124) | Ryan Brown | 2016-10-14 | 1 | -4/+5 |
| | | | | | | | | | | When archiving multiple files, the full length of the calculated `arcroot` would be removed from the beginning of all file names. If there was no arcroot, the first two characters of all files would be removed, so `file.txt` would become `le.txt`. This patch uses the regular expressions substitution anchored to the start of the string, so the arcroot is only removed if it is actually present. | ||||
* | Updates to `archive` module based on code review (#2699) | Benjamin Doherty | 2016-09-13 | 1 | -77/+93 |
| | | | | | | | | * Use common file arguments on destination file * Rename 'compression' to 'format' h/t @abadger * Add support for plain 'tar' format * Ensure check_mode is respected | ||||
* | expanduser() on dest | Ben Doherty | 2016-06-01 | 1 | -1/+3 |
| | |||||
* | Refactor computation of archive filenames, clearer archive filename | Ben Doherty | 2016-06-01 | 1 | -12/+11 |
| | |||||
* | Don't try to walk over files when building archive | Ben Doherty | 2016-06-01 | 1 | -25/+34 |
| | |||||
* | Rename 'archive' -> 'arcfile' in compress branch | Ben Doherty | 2016-06-01 | 1 | -6/+6 |
| | |||||
* | Change 'creates' parameter to 'dest' | Ben Doherty | 2016-06-01 | 1 | -34/+34 |
| | |||||
* | Refactor zip and tarfile loops together, branch where calls are different | Ben Doherty | 2016-05-31 | 1 | -40/+36 |
| | | | | This fixed a few bugs and simplified the code | ||||
* | Merge branch 'bendoh-archive-module' of ↵ | Ben Doherty | 2016-05-31 | 1 | -0/+1 |
|\ | | | | | | | | | | | | | github.com:bendoh/ansible-modules-extras into bendoh-archive-module * 'bendoh-archive-module' of github.com:bendoh/ansible-modules-extras: Add 'default' to docs for 'compression' option | ||||
| * | Add 'default' to docs for 'compression' option | Benjamin Doherty | 2016-05-28 | 1 | -0/+1 |
| | | |||||
* | | Some refactoring: | Ben Doherty | 2016-05-31 | 1 | -11/+29 |
| | | | | | | | | | | | | | | | | | | * rename archive -> arcfile (where it's a file descriptor) * additional return * simplify logic around 'archive?' flag * maintain os separator after arcroot * use function instead of lambda for filter, ensure file exists before file.cmp'ing it * track errored files and fail if there are any | ||||
* | | Reword comments slightly | Ben Doherty | 2016-05-31 | 1 | -2/+2 |
|/ | |||||
* | Documentation updates | Ben Doherty | 2016-05-27 | 1 | -5/+4 |
| | |||||
* | Use different syntax in lambda | Ben Doherty | 2016-05-27 | 1 | -5/+1 |
| | |||||
* | Make remove default to false. It's less frightening. | Ben Doherty | 2016-05-26 | 1 | -8/+14 |
| | |||||
* | Don't use <x> if <y> else <z> syntax | Ben Doherty | 2016-05-26 | 1 | -1/+5 |
| | |||||
* | Accept 'path' as a list argument, expose path and expanded_path, | Ben Doherty | 2016-05-26 | 1 | -9/+5 |
| | | | | Use correct variable in expanduser | ||||
* | Fix up for zip files and nesting logic. | Ben Doherty | 2016-05-26 | 1 | -9/+40 |
| | | | | | | | * Don't include the archive in the archive if it falls within an archived path * If remove=True and the archive would be in an archived path, fail. * Fix single-file zip file compression * Add more documentation about 'state' return | ||||
* | Add license | Ben Doherty | 2016-05-26 | 1 | -0/+20 |
| | |||||
* | Add compressed file source to successes when succeeds! | Ben Doherty | 2016-05-26 | 1 | -0/+2 |
| | |||||
* | Add RETURN documentation | Ben Doherty | 2016-05-26 | 1 | -0/+21 |
| | |||||
* | Fix write mode for ZipFiles ('wb' is invalid!) | Ben Doherty | 2016-05-26 | 1 | -1/+1 |
| | |||||
* | Drop extra double-quote from documentation | Ben Doherty | 2016-05-26 | 1 | -1/+1 |
| | |||||
* | Initial commit of extras/archive module. | Ben Doherty | 2016-05-26 | 1 | -0/+285 |
This manages compressed files or archives of many compressed files. You can maintain or update .gz, .bz2 compressed files, .zip archives, or tarballs compressed with gzip or bzip2. Possible use cases: * Back up user home directories * Ensure large text files are always compressed * Archive trees for distribution |