Commit graph

10288 commits

Author SHA1 Message Date
Michael Scherer
31126034b0 Port htpasswd to python3 compatible syntax (#3672) 2016-12-08 11:24:28 -05:00
Michael Scherer
73a33c02a9 Do not use a tuple as argument for _create_connection (#3655) 2016-12-08 11:24:28 -05:00
Michael Scherer
abfc8d36a8 Add a test on jnpr.junos.utils.sw presence (#3666) 2016-12-08 11:24:28 -05:00
jhawkesworth
2042d948db fix formatting to avoid smart quotes, which breaks ability to copy and paste the jinja2 header from the web docs (#3671) 2016-12-08 11:24:28 -05:00
Michael Scherer
f423554e20 Testing the module on freebsd fail, since module is not assigned yet 2016-12-08 11:24:28 -05:00
Michael Scherer
98c729bfd7 Fix the argument for acl module (#3653) 2016-12-08 11:24:28 -05:00
Matt Martz
190f24f30e Revert "Fix doc strings spacing."
This reverts commit 127d518011.
2016-12-08 11:24:28 -05:00
chouseknecht
26392077c0 Fix doc strings spacing. 2016-12-08 11:24:28 -05:00
chouseknecht
8e6d00f28e Fix doc strings. Missing requirements and doc fragment reference. 2016-12-08 11:24:28 -05:00
Michael Scherer
b788f45b49 Use the proper type for 'dest' argument 2016-12-08 11:24:28 -05:00
Toshio Kuratomi
291e00d43a Docs fixes 2016-12-08 11:24:28 -05:00
Dag Wieers
c650f06b03 Fix small typo (#3642) 2016-12-08 11:24:28 -05:00
chouseknecht
d5b82d67b8 Fail gracefully when build path is not found. 2016-12-08 11:24:27 -05:00
Brian Coca
ca7defeee5 made note about slurp memory consumption 2016-12-08 11:24:27 -05:00
chouseknecht
9a021b4181 Fixed files/project_files naming. Correct name is files. 2016-12-08 11:24:27 -05:00
chouseknecht
5837f744e0 Flip version added back to 2.2 to make tests pass. 2016-12-08 11:24:27 -05:00
chouseknecht
018c2f8f73 Moving version added to 2.1 2016-12-08 11:24:27 -05:00
chouseknecht
e8d49261e3 Added actions to RETURN docs. Show actions when debug or check mode. 2016-12-08 11:24:27 -05:00
chouseknecht
2860f57551 Removed use of --diff. Replaced 'diff' in output with 'actions'. Only show 'actions' in output if debug true. 2016-12-08 11:24:27 -05:00
chouseknecht
be24f83a41 Removed fail method. Combined recreate and force_recreate params. 2016-12-08 11:24:27 -05:00
chouseknecht
50ef604713 Adding docker_service 2016-12-08 11:24:27 -05:00
Toshio Kuratomi
93fe022aa4 Port to dual python2/python3 compat 2016-12-08 11:24:27 -05:00
Toshio Kuratomi
e10b7e1773 Port ping to dual python3/2 compat. 2016-12-08 11:24:27 -05:00
Chris Houseknecht
8ba5cc4392 Fixed parameters passing in container_create method. (#3618) 2016-12-08 11:24:27 -05:00
Johannes Meixner
af634ff5c7 network/*/*_config.py: Correct typo.
- Replace syntanx with syntax in all things network.
2016-12-08 11:24:27 -05:00
Scott Butler
e606a1237b Fixed typos 2016-12-08 11:24:27 -05:00
René Moser
326f7166c0 apt: fix always changed when using deb file on Debian 8 (#3541)
Extends d74e82a3f1e3293ffb70c172e5bb2b6e1ff6dbcc with also support
downgrade.
2016-12-08 11:24:26 -05:00
James Tanner
bc39f8c42e Revert "remove checking of stderr for insserv (#1846)"
This reverts commit 2ee6e4cf66.
2016-12-08 11:24:26 -05:00
Veaceslav Mindru
8c6af73218 add vlidate_certs option for unarchive module (#2635) 2016-12-08 11:24:26 -05:00
TheSameCH
ca8bf6ab4c remove checking of stderr for insserv (#1846)
stderr of insserv can also contain warnings which can be ignored. checking rc only is more accurate.
fixes #1502
2016-12-08 11:24:26 -05:00
Brian Coca
985abd2020 switched to return facts 2016-12-08 11:24:26 -05:00
Brian Coca
c03e1bd2d5 fixed documentation and arg issues 2016-12-08 11:24:26 -05:00
Rene Moser
9f1cfe07bb mysql_user: fix unresolved reference
L282, module is used but not passed into function. Replaced check_mode reference and used module instead since check_mode is also in module.
2016-12-08 11:24:26 -05:00
Rene Moser
6a7682c7ea mysql_variables: fix inconsistent params, fixes ubuntu 16.04 support
In the mysql_user module, login_host is defined as "localhost". Setting this to localhost also fixes Ubuntu 16.04 support.

To make it more consistent in the future, the params in all mysql modules should move to module utils. I'll take care.

Also fixed a few other things along.
2016-12-08 11:24:26 -05:00
hyperized
82cefd7ce1 Added restart functionality to ec2.py 2016-12-08 11:24:26 -05:00
n0trax
2c3caa33f7 Add checkmode and reduce code duplication (#2417)
- httpd removed from control_binaries
- check for enabled module after running a2enmod/a2dismod
- fail, if user has no permissions to run control_binary
- reduce code duplication
2016-12-08 11:24:26 -05:00
Toshio Kuratomi
ed932a53cd Fix documentation 2016-12-08 11:24:26 -05:00
John R Barker
d13046a905 ansible-validate-modules part 4: Enable check on ansible-modules-core (#3526)
* Call ansible-validate-modules

* Correct quotes + add newline
2016-12-08 11:24:26 -05:00
Toshio Kuratomi
fa00c69ff2 bytearray isn't available in python2.4 (#3583)
* Detection of handler depends on the wrong handler failing to list the contents of the tarfile.

Use explicit compression types with the python tarfile library to
achieve that.

* bytearray isn't available in python2.4
2016-12-08 11:24:26 -05:00
Toshio Kuratomi
cd26cc8a0d Detection of handler depends on the wrong handler failing to list the contents of the tarfile. (#3584)
Use explicit compression types with the python tarfile library to
achieve that.
2016-12-08 11:24:26 -05:00
Pomin Wu
d997c79487 Fixed #3577 (#3578)
Initialize `upgradable` before use.
2016-12-08 11:24:26 -05:00
Virgil Dupras
930ea5dd55 unarchive: use Python's tarfile module for tar listing (#3575)
* unarchive: use Python's tarfile module for tar listing

fixes https://github.com/ansible/ansible/issues/11348

Depending on the current active locale, `tar`'s file listing can end up
spitting backslash-escaped characters. Unfortunately, when that happens,
we end up with double-escaped backslashes, giving us a wrong path,
making our action fail.

We could try un-double-escaping our paths, but that would be complicated
and, I think, error-prone. The easiest way forward seemed to simply use
the `tarfile` module.

Why use it only for listing? Because the `unarchive` option also
supports the `extra_opts` option, and that supporting this would require
us to mimick `tar`'s interface.

For listing files, however, I don't think that the loss of `extra_opts`
support causes problems (well, I hope so).

* unarchive: re-add xz decompression support

Following previous change to use Python's `tarfile` module for tar file
listing, we lost `xz` decompression support. This commits re-add it by
adding a special case in `TarXzArchive` that pre-decompresses the source
file.
2016-12-08 11:24:26 -05:00
Harlan Lieberman-Berg
a0fe26b98b command: Correct suggestion of non-existant module apt-get 2016-12-08 11:24:25 -05:00
cspollar
7dc0dcc59e Add missing periods to description items.
Current theme used by docs.ansible.com displays description items on one line. Adding periods helps readability.
2016-12-08 11:24:25 -05:00
René Moser
e006fac22d readme: add build state image from travis 2016-12-08 11:24:25 -05:00
chouseknecht
1d6517489b Add doc string for container_limits. Fixed push fail message. Use path type. 2016-12-08 11:24:25 -05:00
Brian Coca
fdcc1fe763 clarified docs on overwrite 2016-12-08 11:24:25 -05:00
Michael Scherer
54c71b9331 Add a better solution for the ssh_known_hosts issue
Fix https://github.com/ansible/ansible/issues/10172 too
2016-12-08 11:24:25 -05:00
Chris Houseknecht
a09569c150 Adding new module azure_rm_networkinterace_facts (#3460)
* Adding new Azure module.

* Updating based on PR comments
2016-12-08 11:24:25 -05:00
Chris Houseknecht
9406855d6b Adding new module azure_rm_publicipaddress_facts (#3463)
* Adding new Azure module.

* Updating based on PR comments
2016-12-08 11:24:25 -05:00
Chris Houseknecht
9db01b03fd Adding module azure_rm_virtualnetwork_facts (#3479) 2016-12-08 11:24:25 -05:00
Chris Houseknecht
8a3539e69e Adding module azure_rm_storageaccount_facts (#3483) 2016-12-08 11:24:25 -05:00
Chris Houseknecht
08c89626bc Adding module azure_rm_securitygroup_facts (#3485) 2016-12-08 11:24:25 -05:00
Chris Houseknecht
306cbd833d Adding new module azure_rm_resourcegroup_facts (#3487) 2016-12-08 11:24:25 -05:00
Chris Houseknecht
4807aa9c0e Adding module azure_rm_virtualmachineimage_facts (#3489) 2016-12-08 11:24:25 -05:00
Chris Houseknecht
b4caa29b00 Adding docker_image_facts (#3493)
* Adding docker_image_facts

* Fix github credentials
2016-12-08 11:24:25 -05:00
Chris Houseknecht
bc3391f1f9 Adding docker_container (#3495)
* Adding docker_container

* If state absent, stop the container before attempting to remove. Fixed status running check.

* If container absent, stop before removing. Fix container status check.
2016-12-08 11:24:25 -05:00
Toshio Kuratomi
371d7ec73d Fix docs building 2016-12-08 11:24:25 -05:00
Dag Wieers
356d9a272a Replace ansible_hostname with inventory_hostname (#3559)
This way these examples can be re-used using the ansible command (and don't require facts gathering).
2016-12-08 11:24:25 -05:00
Peter Sprygada
bf200458d3 fixes docstring issue for junos_config arguments
The docstring was incorrectly merged with some old entries that will
cause the documentation not to build correclty.  It is now fixed.
2016-12-08 11:24:24 -05:00
Toshio Kuratomi
5f0dc2b90f Some beginning python3 porting for modules which have unittests 2016-12-08 11:24:24 -05:00
Brian Coca
8397c8169c fixed intersection 2016-12-08 11:24:24 -05:00
Michael Scherer
ce0be575e2 Change gem_source and executable to 'path'
Both of them are file location, so they should be
marked as 'path'.
2016-12-08 11:24:24 -05:00
Ryan Brown
52edeeca4c Fix capitalization of AWS in ec2_lc module documentation 2016-12-08 11:24:24 -05:00
Brian Coca
0ae72e2712 rearranged options to be more declarative 2016-12-08 11:24:24 -05:00
Brian Coca
3ebfe3f00a fixed missign main 2016-12-08 11:24:24 -05:00
Brian Coca
cf1b391201 several fixes:
- removed actions feature as this should be global and not per module
- removed default fields from return docs
- moved tags docs to shared fragments
- removed unused imports
2016-12-08 11:24:24 -05:00
Bill W
0fcc2d8973 Add more example on how to use module ec2_tags to list tags on an ins… (#3530)
* Add more example on how to use module ec2_tags to list tags on an instance

* Add more example on how to use module ec2_tags to list tags on an instance
2016-12-08 11:24:24 -05:00
deyvsh
3775d8e684 Extend example to demonstrate usage of ephemeral disks. (#3550) 2016-12-08 11:24:24 -05:00
jedelman8
28db5b7dd1 add nxos_interface 2016-12-08 11:24:24 -05:00
chouseknecht
f09b7b02d6 Remove differences from output. Make options declarative. 2016-12-08 11:24:24 -05:00
chouseknecht
ae30540ca2 Reduced states to present and absent. Power states are now bool options. 2016-12-08 11:24:24 -05:00
chouseknecht
a67e9f3122 Updated version_added on options to reflect options added for 2.1. 2016-12-08 11:24:24 -05:00
chouseknecht
f2e7f1935b Clean up and fixes post API version 1.20 testing. 2016-12-08 11:24:24 -05:00
chouseknecht
6f122bdc88 Fix github credentials 2016-12-08 11:24:24 -05:00
chouseknecht
f257fb3efa Fix unfriendly exeption handling. 2016-12-08 11:24:23 -05:00
chouseknecht
6aa76b835a Updater per PR comments 2016-12-08 11:24:23 -05:00
chouseknecht
720e7daa3a Fix poller error handling 2016-12-08 11:24:23 -05:00
chouseknecht
fd0554c67e Adding refactored docker_image module. 2016-12-08 11:24:23 -05:00
chouseknecht
4f35cb0b2e Adding module azure_rm_virtualmachine 2016-12-08 11:24:23 -05:00
tonyqui
cb9df31ef3 Fixing a typo, floating-ips has been used instead of floating_ips (#3540) 2016-12-08 11:24:23 -05:00
Brian Coca
8a4257d297 removed incorrect defaults from docs 2016-12-08 11:24:23 -05:00
James Cammarata
124c4b94c1 Remove extraneous debug stuff from uri module left over from testing 2016-12-08 11:24:23 -05:00
James Cammarata
50cd8b0aa5 Make sure uri output contains json output when a non-200 status is returned
Prior to the switch to the urls.py code, non-200 responses contained
a 'json' value when the content-type was JSON. This fix restores that
field upon a non-2xx response.

Fixes ansible/ansible#15555
2016-12-08 11:24:23 -05:00
Nathaniel Case
75dbe9f1e8 Remove unnecessary exception from nxos_command (#3521) 2016-12-08 11:24:23 -05:00
Chris Houseknecht
c5b7e456bd Adding docker_login (#3494)
* Adding docker_login

* Set correct version_added.

* Fix github credentials
2016-12-08 11:24:23 -05:00
Konstantin Gribov
9284c80039 Escape spaces, backslashes when create new entry in fstab (#3193)
Supplement to PR #1454 and issue #530.

Fixes #3192.
Fixes #1861 (introduced by PR #1454).

Signed-off-by: Konstantin Gribov <grossws@gmail.com>
2016-12-08 11:24:23 -05:00
Brian Coca
0ba37906df minor doc fixes 2016-12-08 11:24:23 -05:00
Chris Houseknecht
e85368cb3e Adding new module azure_rm_resourcegroup (#3490)
* Adding new module azure_rm_resourcegroup

* Fix poller error handling
2016-12-08 11:24:23 -05:00
Chris Houseknecht
6d4a5e5f0e Adding module azure_rm_storageaccount.py (#3484)
* Adding module azure_rm_storageaccount.py

* Fix poller error handling
2016-12-08 11:24:23 -05:00
Chris Houseknecht
fedf06c449 Adding module azure_rm_securitygroup (#3486)
* Adding module azure_rm_securitygroup

* Fix poller error handling
2016-12-08 11:24:23 -05:00
Chris Houseknecht
8ba16e9866 Adding new module azure_rm_storageblob (#3482) 2016-12-08 11:24:23 -05:00
Chris Houseknecht
0d285ec18b Adding module azure_rm_subnet (#3481)
* Adding module azure_rm_subnet

* Fix poller error handling
2016-12-08 11:24:22 -05:00
Chris Houseknecht
d80e4f53ec Adding module azure_rm_virtualnetwork (#3480)
* Adding module azure_rm_virtualnetwork

* Fix poller error handling
2016-12-08 11:24:22 -05:00
Chris Houseknecht
4a99a6ee8f Adding new module azure_rm_networkinterface (#3461)
* Adding new Azure module.

* Updating based on PR comments

* Fix poller error handling
2016-12-08 11:24:22 -05:00
Peter Sprygada
8729bcde3f adds new module junos_package
the new module allows playbook designers to manage packages on remote
devices running junos.
2016-12-08 11:24:22 -05:00
Peter Sprygada
ef794d95e5 adds new module ops_facts
This adds a new module for collect device facts from remote devices
running OpenSwitch.  This module is useful when collecting fact information
over CLI transport.
2016-12-08 11:24:22 -05:00
GGabriele
b375f61d2b Fixed doc 2016-12-08 11:24:22 -05:00
GGabriele
9aeaa70e32 Changed module name to nxos_facts 2016-12-08 11:24:22 -05:00
GGabriele
693f7c938e Fixing bugs 2016-12-08 11:24:22 -05:00
GGabriele
84ecc21677 Adding nxos_ip_interface 2016-12-08 11:24:22 -05:00
chouseknecht
198bb7c644 Updating based on PR comments 2016-12-08 11:24:22 -05:00
GGabriele
02744e7cab Adding nxos_vrrp 2016-12-08 11:24:22 -05:00
GGabriele
f4fd69bcff Adding nxos_ping 2016-12-08 11:24:22 -05:00
jedelman8
be91a5622a fix index for portchannel 2016-12-08 11:24:22 -05:00
GGabriele
10238bbb06 fix conditional for py24 2016-12-08 11:24:22 -05:00
jedelman8
cda210c3f9 fix docstring 2016-12-08 11:24:22 -05:00
jedelman8
ad9ede5d4c force travis build 2016-12-08 11:24:21 -05:00
jedelman8
89aabffee8 minor test 2016-12-08 11:24:21 -05:00
chouseknecht
36de316c1b Adding new azure module. 2016-12-08 11:24:21 -05:00
jedelman8
01b8f7db5e update return doc string 2016-12-08 11:24:21 -05:00
GGabriele
66eea14df2 Fixed RETURN string 2016-12-08 11:24:21 -05:00
GGabriele
0798968596 Fixed RETURN string and added notes 2016-12-08 11:24:21 -05:00
GGabriele
97577df048 Fixing nxos_vrf 2016-12-08 11:24:21 -05:00
GGabriele
62b0b48f58 Adding nxos_vrf_interface 2016-12-08 11:24:21 -05:00
GGabriele
2c43f6b35c Adding nxos_vrf 2016-12-08 11:24:21 -05:00
GGabriele
b4d69262ed Adding nxos_get_facts 2016-12-08 11:24:21 -05:00
GGabriele
95992b91bd Addng nxos_feature 2016-12-08 11:24:21 -05:00
jedelman8
6ae109630e add nxos_vlan 2016-12-08 11:24:21 -05:00
jedelman8
5ef3a6430a add nxos_switchport 2016-12-08 11:24:21 -05:00
Peter Sprygada
a9b664c796 add support for netconf to junos_config
The junos_config module now supports the netconf transport.
2016-12-08 11:24:21 -05:00
Peter Sprygada
abb008dca7 fixes docstring format in junos_command 2016-12-08 11:24:21 -05:00
Peter Sprygada
89ebc8b066 adds config_format argument to the facts module
this change adds config_format argument with choices of xml, set or text to
specify the desired format of the config returned from the remote device.  The
default value is text
2016-12-08 11:24:21 -05:00
Peter Sprygada
9d521aa7e0 Merge pull request #9 from dgarros/junos_modules
Add support for xml, set and text format for config
2016-12-08 11:24:21 -05:00
Guido Falsi
582a5bccc8 Make FreeBSD subclass respect the sleep option. 2016-12-08 11:24:20 -05:00
Michael Scherer
5b32a299a5 Change home and ssh_key_file to 'path' in user module 2016-12-08 11:24:20 -05:00
Darek Kaczyński
08ad68984c Fix for 'cannot unmarshal array into Go value of type string' error about HostConfig Binds (#3496) 2016-12-08 11:24:20 -05:00
Peter Sprygada
1985115e55 adds new module junos_netconf used for configuring netconf services
This module allows playbook operators to configure the netconf service in
junos for use with other juniper modules.
2016-12-08 11:24:20 -05:00
Peter Sprygada
2072922875 adds new junos_facts module
The junos_facts module will collect basic system inforamtion about remote
devices running the Junos operating system
2016-12-08 11:24:20 -05:00
Sumit Roy
b8204774dd Support tagging ELBs using boto 2.0. (#2844) 2016-12-08 11:24:20 -05:00
Peter Sprygada
871e586ce3 add support for netconf to junos_template
This commit adds support for sending full syntanx junos configurations using
junos_template and netconf
2016-12-08 11:24:20 -05:00
Peter Sprygada
923974e3c0 add support to junos_command module for netconf transport
This adds support for using netconf to the junos_command option and removes
the use of cli as a transport
2016-12-08 11:24:20 -05:00
jctanner
56f5ca37af Fix status check on get_url with file schemas and update the examples. (#3512)
Addresses #3511
2016-12-08 11:24:20 -05:00
Brian Coca
4e08f94a34 corrected return docs sample 2016-12-08 11:24:20 -05:00
nitzmahone
bc4510b0d4 docs for win_reboot action 2016-12-08 11:24:20 -05:00
vaupelt
ae464c5b5e exclude_hosts does not work as expected with state=drained
There are established connections for a service. The service is bound to a ipv4-mapped ipv6 address. Wait_for wrongly waits for clients listed in exclude_hosts.
2016-12-08 11:24:20 -05:00
Michael Scherer
001ceb8dc6 Remove old test on SELinux (#3510)
since all is done in modules_utils/basic.py, no need to make
the same test here, especially since that's unused later
2016-12-08 11:24:20 -05:00
Robin Roth
281398fdc2 fix git switch branches in combination with depth on old git versions (#3492)
* fix git switch branches in combination with depth

* the old implementation is correct, but relies on git working correctly
  (as only newer versions do)
* with some older git version (e.g. 1.8.3), git fetch remote branch does
  not work, if the branch does not yet exist locally
* this patch works around that without explicitly checking the git version
* future refactoring is needed to reduce the number of fetches to a
  minimum; but this patch makes the code "correct"

* add git version requirements to doc

* replace set-branches with git 1.7.1 compatible version
2016-12-08 11:24:20 -05:00
ThomasSteinbach
a90fd67c7e docker: fix type issue (#3491)
* fix type issue

* fix type issue for 'volumes-from'
2016-12-08 11:24:20 -05:00
Rene Moser
885b8dc4d0 git: fix status to use porcelain, ignore user configuration
From the git status doc:

    --porcelain

        Give the output in an easy-to-parse format for scripts. This is similar to the short output, but will remain stable across Git versions and regardless of user configuration. See below for details.

User configuration can break the git module from working as expected.
2016-12-08 11:24:20 -05:00
Dreamcat4
eeabebdd6c fix: win_get_url - fixes for strict-mode 2016-12-08 11:24:20 -05:00
Dreamcat4
c85a82ad00 fix: win_stat - fixes for strict-mode 2016-12-08 11:24:19 -05:00
Adrian Likins
4141cc5548 improve redhat_subscription documentation (#3348)
* add subscription-manager's --type, --consumerid, --name option support

* redhat_subscription: More docs on consumerid
2016-12-08 11:24:19 -05:00
Michael Scherer
69f2b3d727 Fix error reporting for fetch_key (#2662)
Since fetch_url already take care of the exception, the try/except
clause is no longer working, so replace it with proper status
checking, thus permitting to remove urlib2 from the import list.
2016-12-08 11:24:19 -05:00
Constantin
404f07af8e Added improvements and documented return structure (#2320) 2016-12-08 11:24:19 -05:00
jjshoe
87946920d8 Fix an issue where by a call to ec2.get_image wasn't wrapped in a try/except, and would occasionally throw an exception in the wild. Also greatly simplifies two of the ugliest known loops to man down into a single loop. (#2554) 2016-12-08 11:24:19 -05:00
Brian Coca
34a3bc043a removed usless default doc 2016-12-08 11:24:19 -05:00
Justin Kennedy
ab4b8e0847 Updating examples to include required fields (#3242)
Updated examples to include required fields (host, username).  Also updated src option to be listed as required.
2016-12-08 11:24:19 -05:00
Brian Coca
6a309ee6ab added missing version_added 2016-12-08 11:24:19 -05:00
Pål Nilsen
7e18da79c3 Add optional force parameter for apache2_module (#3251)
* Add optional force parameter for apache2_module

Fixes #2499

* Add documentation for the force parameter

* Clarify in description that -f(orce) is a Debian parameter
2016-12-08 11:24:19 -05:00