Commit Graph

8170 Commits (0a056eccbf84ac2886432e86d04833a56ad62d7b)
 

Author SHA1 Message Date
Ben Doherty 0a056eccbf Refactor zip and tarfile loops together, branch where calls are different
This fixed a few bugs and simplified the code
9 years ago
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
9 years ago
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
9 years ago
Ben Doherty d5e861b352 Reword comments slightly 9 years ago
Benjamin Doherty ef620c7de3 Add 'default' to docs for 'compression' option 9 years ago
Ben Doherty 6e0aac888b Documentation updates 9 years ago
Ben Doherty 20bfb1339d Use different syntax in lambda 9 years ago
Ben Doherty ae35ce5641 Make remove default to false. It's less frightening. 9 years ago
Ben Doherty 6db9cafdec Don't use <x> if <y> else <z> syntax 9 years ago
Ben Doherty d3e041d1a2 Accept 'path' as a list argument, expose path and expanded_path,
Use correct variable in expanduser
9 years ago
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
9 years ago
Ben Doherty f482cb4790 Add license 9 years ago
Ben Doherty ecd60f4839 Add compressed file source to successes when succeeds! 9 years ago
Ben Doherty 9cde150bd1 Add RETURN documentation 9 years ago
Ben Doherty e9b85326a6 Fix write mode for ZipFiles ('wb' is invalid!) 9 years ago
Ben Doherty 431d8c9a8f Drop extra double-quote from documentation 9 years ago
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
9 years ago
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
9 years ago
René Moser a055d7240a fix build and doc cleanups (#2286) 9 years ago
jhawkesworth e35d5f2c54 Add info about where you can find product ids for changed checking on win_package module (#2281) 9 years ago
Toshio Kuratomi 342af8b249 Add __init__.py and update version_added to fix module for ansible-validate checks 9 years ago
Fernando José Pando 0d8eefe197 fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
9 years ago
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)
9 years ago
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
9 years ago
Ryan Sydnor 0ba34435cf Add encryption capability to AMI copy (#1409) 9 years ago
Brian Coca eb6ba749c2 added return docs 9 years ago
Adam Števko 0d54d1ffe4 Add module for retrieving SmartOS image facts (#1276) 9 years ago
Brian Coca ecee427cbc added note about behaviour change in 2.2 9 years ago
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.
9 years ago
Rob b9ab1f9f5c Add section on how to return boto3 CamelCased results (#2279) 9 years ago
Michael Scherer a780dbf4e1 Port patch.py to python3/python2.4 syntax (#2276) 9 years ago
Hagai Kariti 7e08d01010 bigpanda: Remove docs using complex args (#2275)
As they're going to be deprecated, don't recommend using them.
9 years ago
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
9 years ago
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"
9 years ago
Mariano Lasala 3d54bdd4e1 Update sl_vm.py (#2267)
There was a mistype in DATACENTER list with 'lon2', changed to 'lon02'.
9 years ago
René Moser cdffb36642 softlayer: fix module name in doc (#2266) 9 years ago
Brian Coca 29be1310e1 add missing author info 9 years ago
Orion Poplawski 14a0b7b9b7 Fix gw4/gw6 typo (#1841) 9 years ago
Hans-Joachim Kliemeck 896f6dcd34 blockinfile will always add newline at EOF (#2261) 9 years ago
Toshio Kuratomi 33f3612e5c Move running py3 compile test from whitelist to blacklist (#2254) 9 years ago
Alex ce5a9b6c5f zypper: (Bugfix) Change command option --verbose to --details which is supported since 2008 (#2224) 9 years ago
Rob 8fb8ec2e98 Add idempotence to ec2_eni when private_ip_address is supplied (#2172) 9 years ago
Victor Costan 76dee3d872 Add sts_session_token module for short-lived AWS credentials. (#1988) 9 years ago
Victor Costan 010286aafd Add aws_mfa_devices module for multi-factor authentication on AWS. (#1987) 9 years ago
Toshio Kuratomi 2a5812a0e8 Move the import of get_exception to pycompat24 9 years ago
kubilus1 b742ab1263 Check to see existence of same named/location system before creation. (#2150) 9 years ago
Toshio Kuratomi e710dc47fe Add vmware and lxc to python3 checks 9 years ago
Toshio Kuratomi 8ecc3d2516 Port vspherer_copy to pass syntax checks on python3 9 years ago
Michael Scherer 84ec0c8faf Port vca_nat and vca_fw to py3 compatible syntax (#2243)
Since they both depend on library that cannot run on python2.4,
cf https://github.com/ansible/ansible/pull/15870, we can use
directly the python 2.6 syntax, as seen on the porting doc.
9 years ago
Michael Scherer c8864c3220 Use a python3 compatible notation for octal (#2238) 9 years ago