https://github.com/compscidr/ansible-uncompress
Uncompress module for ansible
https://github.com/compscidr/ansible-uncompress
ansible ansible-module ansible-role bz2 gz unarchive uncompress
Last synced: 5 months ago
JSON representation
Uncompress module for ansible
- Host: GitHub
- URL: https://github.com/compscidr/ansible-uncompress
- Owner: compscidr
- License: gpl-3.0
- Created: 2022-08-15T17:00:20.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T18:30:13.000Z (5 months ago)
- Last Synced: 2025-02-20T19:33:54.865Z (5 months ago)
- Topics: ansible, ansible-module, ansible-role, bz2, gz, unarchive, uncompress
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-uncompress
[](https://galaxy.ansible.com/ui/standalone/roles/compscidr/uncompress/)
[](https://github.com/compscidr/ansible-uncompress/actions/workflows/check.yml)
[](https://ansible.readthedocs.io/projects/lint/rules/)Uncompress collection for ansible. Lets you download an uncompress .gz and .bz2 files
which currently isn't possible with the unarchive built-in module.
https://galaxy.ansible.com/ui/repo/published/compscidr/uncompress/Motivated by the push-back against .gz .bz2 not being supported for compressed
files: https://github.com/ansible/ansible-modules-core/issues/3241#issuecomment-240991265and the existance of this project: https://github.com/vadikgo/uncompress.
Updating the existing project to support installation via a `meta/requirements.yml`
file and then submitting to ansible galaxy so that it can be found and installed
easily.## installation via galaxy:
`ansible-galaxy collection install compscidr.uncompress`## installation via galaxy / requirements
Add the following to `requirements.yml`
```
collections:
- name: compscidr.uncompress
```
Then run
`ansible-galaxy install -r requirements.yml`## installation via git / requirements
Add the following to your `requirements.yml` file:
```
collections:
- name: git+https://github.com/compscidr/ansible-uncompress.git,main
```
Then run
`ansible-galaxy install -r requirements.yml`## example use in task file:
```
---
- name: install cheat # https://github.com/cheat/cheat/blob/master/INSTALLING.md
tags: cheat
become: true
compscidr.uncompress:
copy: no
src: https://github.com/cheat/cheat/releases/download/4.3.1/cheat-linux-amd64.gz
dest: /usr/local/bin/cheat
mode: '755'
```