Commit graph

8174 commits

Author SHA1 Message Date
Ben Doherty
a38b510aa8 Refactor computation of archive filenames, clearer archive filename 2016-06-01 08:59:28 -04:00
Ben Doherty
ddfd32774b Don't try to walk over files when building archive 2016-06-01 08:29:28 -04:00
Ben Doherty
b9971f131a Rename 'archive' -> 'arcfile' in compress branch 2016-06-01 08:29:14 -04:00
Ben Doherty
b57b0473cf Change 'creates' parameter to 'dest' 2016-06-01 08:16:31 -04:00
Ben Doherty
0a056eccbf Refactor zip and tarfile loops together, branch where calls are different
This fixed a few bugs and simplified the code
2016-05-31 23:42:37 -04:00
Ben Doherty
ec856c85ad Merge branch 'bendoh-archive-module' of 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
2016-05-31 18:33:32 -04:00
Ben Doherty
726c4d9ba7 Some refactoring:
* 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
2016-05-31 18:31:07 -04:00
Ben Doherty
d5e861b352 Reword comments slightly 2016-05-31 18:30:47 -04:00
Benjamin Doherty
ef620c7de3 Add 'default' to docs for 'compression' option 2016-05-28 09:02:43 -04:00
Ben Doherty
6e0aac888b Documentation updates 2016-05-27 00:07:15 -04:00
Ben Doherty
20bfb1339d Use different syntax in lambda 2016-05-27 00:00:59 -04:00
Ben Doherty
ae35ce5641 Make remove default to false. It's less frightening. 2016-05-26 23:58:17 -04:00
Ben Doherty
6db9cafdec Don't use <x> if <y> else <z> syntax 2016-05-26 23:49:32 -04:00
Ben Doherty
d3e041d1a2 Accept 'path' as a list argument, expose path and expanded_path,
Use correct variable in expanduser
2016-05-26 23:42:03 -04:00
Ben Doherty
cca70b7c91 Fix up for zip files and nesting logic.
* 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
2016-05-26 23:09:35 -04:00
Ben Doherty
f482cb4790 Add license 2016-05-26 21:41:40 -04:00
Ben Doherty
ecd60f4839 Add compressed file source to successes when succeeds! 2016-05-26 21:38:36 -04:00
Ben Doherty
9cde150bd1 Add RETURN documentation 2016-05-26 21:38:31 -04:00
Ben Doherty
e9b85326a6 Fix write mode for ZipFiles ('wb' is invalid!) 2016-05-26 21:33:27 -04:00
Ben Doherty
431d8c9a8f Drop extra double-quote from documentation 2016-05-26 20:36:14 -04:00
Ben Doherty
cb4173957c Initial commit of extras/archive module.
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
2016-05-26 19:54:30 -04:00
Adrian Likins
d1a4f703ce Fix pkgutil "upgrade_catalog must be one of" err (#2149)
The arg spec for update_catalog include 'type=bool'
and 'choices=["yes", "no"] which can never both be
true.

Remove the 'choices' directive, and update doc string.

Fixes #2144
2016-05-24 11:55:14 -04:00
René Moser
a055d7240a fix build and doc cleanups (#2286) 2016-05-24 13:24:04 +02:00
jhawkesworth
e35d5f2c54 Add info about where you can find product ids for changed checking on win_package module (#2281) 2016-05-23 16:14:49 -04:00
Toshio Kuratomi
342af8b249 Add __init__.py and update version_added to fix module for ansible-validate checks 2016-05-23 13:06:14 -07:00
Fernando José Pando
0d8eefe197 fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
2016-05-23 11:39:20 -04:00
Dag Wieers
4afae893e1 Convert module to work with python 2.4 and fix a bug (#2251)
- Avoiding the use of 'with ... as ...' and 'except ... as ...' constructs.

- Make use of posixpath.join() rather than concatenating slashes ourselves
  (To avoid having consecutive slashes which broke something on our side)
2016-05-23 11:18:05 -04:00
Mike Mochan
6d52d84af7 New AWS module for managing VPC Network ACLs (#1502)
* New AWS module for managing VPC Networks ACLs

Moved return  outside of try block

botocore.exceptions to support python 2.5

For some reason Travis is using Python V2.4 to run the tests - My code is valid

duplicate file

* Fixed NameError Exception- module not being passed when calling some boto3 client methods

* Fixes a bug reported by @dennisconrad, where the nacl is not created when subnets list is empty

* nacl property changed to name and fixes a bug where nacl is not deleted when subnets list is empty

* Updates to version and requirements

* Fix 'vpc' param to 'vpc_id' to match documentation and convention
2016-05-23 10:42:11 -04:00
Ryan Sydnor
0ba34435cf Add encryption capability to AMI copy (#1409) 2016-05-23 10:39:02 -04:00
Brian Coca
eb6ba749c2 added return docs 2016-05-23 10:36:47 -04:00
Adam Števko
0d54d1ffe4 Add module for retrieving SmartOS image facts (#1276) 2016-05-23 10:35:55 -04:00
Brian Coca
ecee427cbc added note about behaviour change in 2.2 2016-05-23 10:35:03 -04:00
Leo Antunes
d54905ecee Allow multiple keys per host + minor improvements (#716)
* known_hosts: clarify key format in documentation

Add a small clarification to the documentation about the format of the
"key" parameter.
Should make #664 less of a issue for newcomers.

* known_hosts: normalize key entry to simplify input

Keys are normalized before comparing input with present keys. This
should make it easier to deal with some corner cases, such as having a
hashed entry for some host and trying to add it as non-hashed.

* known_hosts: allow multiple entries per host

In order to support multiple key types and allow the installed ssh
version to decide which is more secure, the module now only overwrites
an existing entry in known_hosts if the provided key is of the same
type.
Old keys of different types must be explicitly removed. Setting
state to "absent" and providing no key will remove all entries for the
host.
2016-05-23 10:33:52 -04:00
Rob
b9ab1f9f5c Add section on how to return boto3 CamelCased results (#2279) 2016-05-23 10:31:41 -04:00
Michael Scherer
a780dbf4e1 Port patch.py to python3/python2.4 syntax (#2276) 2016-05-23 09:44:57 -04:00
Hagai Kariti
7e08d01010 bigpanda: Remove docs using complex args (#2275)
As they're going to be deprecated, don't recommend using them.
2016-05-23 09:29:26 +02:00
Nicolas Landais
b11029adca Fix problem with 'restarted' state not restarting the apppool when it is in running state (#1451)
* Fix problem with 'restarted' state not restarting the apppool when it is in running state

* Implemeting code review comments

Comment from previous commit “You basically want to start the pool if
it's stopped and requested state is started or restarted, otherwise if
requested state is restarted, restart it.” This commit implements the
behavior stated in the PR comment
2016-05-20 17:31:46 -07:00
Corwin Brown
d2900e856b Add Win Robocopy module (#1078)
* Added more robust error handling

* Add Win Synchronize module

Renamed win_synchronize to win_robocopy

Updating email address

Adding "flags" argument.

Adding a "flags" argument that will allow the user to pass args
directly to robocopy.

If "flags" is set, recurse and purge will be ignored.

Add return code to output

Added bits to support check mode

Fixing typo in Documentation

Updated Documentation to have "RETURNED" field

Updated win_robocopy.py to have the RETURNED field. I also noticed
that win_robocopy.ps1 wasn't really using the "changed" attribute,
so I went in and made sure it was being set appropriately.

Forcing bool type for recurse and purge flag

Updated "version_added"
2016-05-20 17:25:24 -07:00
Mariano Lasala
3d54bdd4e1 Update sl_vm.py (#2267)
There was a mistype in DATACENTER list with 'lon2', changed to 'lon02'.
2016-05-21 00:39:17 +02:00
René Moser
cdffb36642 softlayer: fix module name in doc (#2266) 2016-05-21 00:38:48 +02:00
Brian Coca
29be1310e1 add missing author info 2016-05-20 09:19:23 -04:00
Orion Poplawski
14a0b7b9b7 Fix gw4/gw6 typo (#1841) 2016-05-20 08:46:52 -04:00
Hans-Joachim Kliemeck
896f6dcd34 blockinfile will always add newline at EOF (#2261) 2016-05-20 10:25:10 +02:00
Toshio Kuratomi
33f3612e5c Move running py3 compile test from whitelist to blacklist (#2254) 2016-05-19 15:22:39 -07:00
Alex
ce5a9b6c5f zypper: (Bugfix) Change command option --verbose to --details which is supported since 2008 (#2224) 2016-05-19 08:21:33 +02:00
Rob
8fb8ec2e98 Add idempotence to ec2_eni when private_ip_address is supplied (#2172) 2016-05-19 07:55:54 +02:00
Victor Costan
76dee3d872 Add sts_session_token module for short-lived AWS credentials. (#1988) 2016-05-18 11:13:49 -07:00
Victor Costan
010286aafd Add aws_mfa_devices module for multi-factor authentication on AWS. (#1987) 2016-05-18 11:10:52 -07:00
Toshio Kuratomi
2a5812a0e8 Move the import of get_exception to pycompat24 2016-05-18 06:23:10 -07:00
kubilus1
b742ab1263 Check to see existence of same named/location system before creation. (#2150) 2016-05-18 09:26:58 +02:00