No description
Find a file
tedder b138411671 feature pull request: catch and retry recoverable errors
boto can throw SSLError when timeouts occur (among other SSL errors). Catch these so proper JSON can be returned, and also add the ability to retry the operation.

There's an open issue in boto for this: https://github.com/boto/boto/issues/2409

Here's a sample stacktrace that inspired me to work on this. I'm on 1.7, but there's no meaningful differences in the 1.8 release that would affect this. I've added line breaks to the trace for readability.

    failed to parse: Traceback (most recent call last):
      File "/home/ubuntu/.ansible/tmp/ansible-tmp-1419895753.17-160808281985012/s3", line 2031, in <module> main()
      File "/home/ubuntu/.ansible/tmp/ansible-tmp-1419895753.17-160808281985012/s3", line 353, in main download_s3file(module, s3, bucket, obj, dest)
      File "/home/ubuntu/.ansible/tmp/ansible-tmp-1419895753.17-160808281985012/s3", line 234, in download_s3file key.get_contents_to_filename(dest)
      File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1665, in get_contents_to_filename response_headers=response_headers)
      File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1603, in get_contents_to_file response_headers=response_headers)
      File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1435, in get_file query_args=None)
      File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1488, in _get_file_internal for bytes in self:
      File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 368, in next data = self.resp.read(self.BufferSize)
      File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 416, in read return httplib.HTTPResponse.read(self, amt)
      File "/usr/lib/python2.7/httplib.py", line 567, in read s = self.fp.read(amt)
      File "/usr/lib/python2.7/socket.py", line 380, in read data = self._sock.recv(left)
      File "/usr/lib/python2.7/ssl.py", line 341, in recv return self.read(buflen)
      File "/usr/lib/python2.7/ssl.py", line 260, in read return self._sslobj.read(len) ssl.SSLError: The read operation timed out
2015-06-01 16:09:20 -07:00
cloud feature pull request: catch and retry recoverable errors 2015-06-01 16:09:20 -07:00
commands Fix missing expanduser on chdir value 2015-06-01 14:51:57 -07:00
database Fix a problem introduced with #1101 and optimize privilege handling 2015-06-01 15:59:26 -07:00
files removes bool type from validate. 2015-06-01 15:59:25 -07:00
inventory Fix documentation formatting 2015-05-05 13:46:46 -07:00
network Properly flip default for verifying server cert. Add nice error messages when the cert is invalid 2015-05-28 15:33:21 -07:00
packaging Import ansible module_utils at bottom of file to not mess with line numbers in tracebacks 2015-05-29 13:37:47 -07:00
source_control Reverse the force parameter for the hg module 2015-01-29 18:27:35 -08:00
system service: Fix comments in OpenBsdService class. 2015-05-27 08:05:30 +02:00
utilities sleep when only doing a time delay to avoid cpu churn 2015-05-26 10:58:39 -04:00
web_infrastructure Added os.path.expanduser to app_path in django_manage 2015-03-29 21:34:29 +02:00
windows Re-reverting windows modules PR #384 2015-05-22 13:28:24 -05:00
.gitignore Add basic top level files. 2014-09-26 09:21:20 -04:00
.travis.yml Add compileall testing via travis to validate modules are python24 compatible 2015-06-01 15:26:50 -07:00
__init__.py package files 2014-09-26 11:05:47 -04:00
CONTRIBUTING.md Add basic top level files. 2014-09-26 09:21:20 -04:00
COPYING Add basic top level files. 2014-09-26 09:21:20 -04:00
README.md updated to keep same info as in extras repo 2015-03-10 10:35:29 -04:00

ansible-modules-core

This repo contains Ansible's most popular modules that are shipped with Ansible.

New module submissions for modules that do not yet exist should be submitted to ansible-modules-extras, rather than this repo.

Take care to submit tickets to the appropriate repo where modules are contained. The docs.ansible.com website indicates this at the bottom of each module documentation page.

Reporting bugs

Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of module documentation page at docs.ansible.com.

Testing modules

Ansible module development guide contains the latest info about that.

License

As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.

Installation

There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.