47cc422b8a
Reading the entire tar file into memory can result in out-of-memory conditions such as this traceback: Traceback (most recent call last): File "/tmp/ansible_YELTSu/ansible_module_docker_image.py", line 486, in load_image self.client.load_image(image_data) File "/usr/local/lib/python2.7/dist-packages/docker/api/image.py", line 147, in load_image res = self._post(self._url("/images/load"), data=data) ... File "/usr/lib/python2.7/httplib.py", line 997, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 848, in _send_output msg += message_body MemoryError Luckily docker-py's load_image(), which calls requests post(), accepts a file-like object instead of a string. Pass in the file object to avoid reading the full file into memory. This allows larger tar files to load succesfully. Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> |
||
---|---|---|
.github | ||
cloud | ||
commands | ||
database | ||
files | ||
inventory | ||
network | ||
packaging | ||
source_control | ||
system | ||
test/unit/cloud/openstack | ||
utilities | ||
web_infrastructure | ||
windows | ||
.gitignore | ||
.travis.yml | ||
__init__.py | ||
CONTRIBUTING.md | ||
COPYING | ||
README.md | ||
test-docs.sh | ||
test-requirements.txt | ||
VERSION |
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.