You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to 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.
9 years ago
.github Update the issue and pull-request templates in sync with ansible/ansible 9 years ago
cloud Add missing periods to description items. 9 years ago
commands command: Correct suggestion of non-existant module apt-get 9 years ago
database Allow an empty password when adding a new MySQL user. (#3445) 9 years ago
files unarchive: use Python's tarfile module for tar listing (#3575) 9 years ago
inventory Add missing GPLv3 License header 9 years ago
network fixes docstring issue for junos_config arguments 9 years ago
packaging Some beginning python3 porting for modules which have unittests 9 years ago
source_control Add a better solution for the ssh_known_hosts issue 9 years ago
system removed incorrect defaults from docs 9 years ago
test/unit/cloud/openstack add some unit tests for the os_server module 9 years ago
utilities exclude_hosts does not work as expected with state=drained 9 years ago
web_infrastructure added missing version_added 9 years ago
windows Merge pull request #3376 from nitzmahone/win_reboot 9 years ago
.gitignore Add basic top level files. 10 years ago
.travis.yml Disable travis docs checks 9 years ago
CONTRIBUTING.md point to local issue temmplate 9 years ago
COPYING Add basic top level files. 10 years ago
README.md readme: add build state image from travis 9 years ago
VERSION Version bump for new beta 2.0.0-0.5.beta3 9 years ago
__init__.py package files 10 years ago
test-docs.sh Add testing of docs to the core repo 9 years ago
test-requirements.txt add some unit tests for the os_server module 9 years ago

README.md

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.