Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T18:35:37.000Z (2 months ago)
- Last Synced: 2025-01-08T05:47:15.169Z (about 1 month ago)
- Topics: ansible, ansible-module, ansible-role, bz2, gz, unarchive, uncompress
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-uncompress
[![Static Badge](https://img.shields.io/badge/Ansible_galaxy-Download-blue)](https://galaxy.ansible.com/ui/standalone/roles/compscidr/uncompress/)
[![ansible lint](https://github.com/compscidr/ansible-uncompress/actions/workflows/check.yml/badge.svg)](https://github.com/compscidr/ansible-uncompress/actions/workflows/check.yml)
[![ansible lint rules](https://img.shields.io/badge/Ansible--lint-rules%20table-blue.svg)](https://ansible.readthedocs.io/projects/lint/rules/)Uncompress module 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/compscidr/uncompressMotivated 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 install compscidr.uncompress`## installation via galaxy / requirements
Add the following to `requirements.yml`
```
roles:
- name: compscidr.uncompress
```
Then run
`ansible-galaxy install -r requirements.yml`## installation via git / requirements
Add the following to your `requirements.yml` file:
```
# from github
- src: https://github.com/compscidr/ansible-uncompress
name: compscidr.uncompress
```
Then run
`ansible-galaxy install -r requirements.yml`## example use:
```
---
- name: Install some gz file:
hosts: all
roles:
- compscidr.uncompress
tasks:
- name: install cheat # https://github.com/cheat/cheat/blob/master/INSTALLING.md
tags: cheat
become: true
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'
```