No description
Find a file
Virgil Dupras 82aeaed45d 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-05-01 17:34:43 -07:00
.github Update the issue and pull-request templates in sync with ansible/ansible 2016-03-23 15:59:17 +01:00
cloud Add missing periods to description items. 2016-04-30 18:34:28 +02:00
commands command: Correct suggestion of non-existant module apt-get 2016-05-01 11:02:57 +02:00
database Allow an empty password when adding a new MySQL user. (#3445) 2016-04-19 10:44:52 +02:00
files unarchive: use Python's tarfile module for tar listing (#3575) 2016-05-01 17:34:43 -07:00
inventory Add missing GPLv3 License header 2015-07-03 22:57:53 -05:00
network fixes docstring issue for junos_config arguments 2016-04-27 10:39:51 -04:00
packaging Some beginning python3 porting for modules which have unittests 2016-04-27 07:17:05 -07:00
source_control Add a better solution for the ssh_known_hosts issue 2016-04-28 20:27:18 +02:00
system removed incorrect defaults from docs 2016-04-25 14:43:05 -04:00
test/unit/cloud/openstack add some unit tests for the os_server module 2015-10-16 21:03:50 -04:00
utilities exclude_hosts does not work as expected with state=drained 2016-04-21 13:11:55 -04:00
web_infrastructure added missing version_added 2016-04-19 17:45:36 -04:00
windows Merge pull request #3376 from nitzmahone/win_reboot 2016-04-25 09:13:47 -07:00
.gitignore Add basic top level files. 2014-09-26 09:21:20 -04:00
.travis.yml Disable travis docs checks 2015-07-01 07:24:39 -07:00
__init__.py package files 2014-09-26 11:05:47 -04:00
CONTRIBUTING.md point to local issue temmplate 2016-02-18 09:28:47 -08:00
COPYING Add basic top level files. 2014-09-26 09:21:20 -04:00
README.md readme: add build state image from travis 2016-04-29 10:52:17 +02:00
test-docs.sh Add testing of docs to the core repo 2015-06-29 12:42:50 -07:00
test-requirements.txt add some unit tests for the os_server module 2015-10-16 21:03:50 -04:00
VERSION Version bump for new beta 2.0.0-0.5.beta3 2015-11-13 16:46:32 -05:00

Build Status

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.