compscidr.uncompress

ansible-uncompress

The uncompress module for Ansible allows you to download and uncompress .gz and .bz2 files. This functionality is not available in the built-in unarchive module.

For more information, you can visit: Ansible Galaxy uncompress module

This module was created in response to the need for .gz and .bz2 support for compressed files, as discussed in this issue: GitHub Issue. It is inspired by another project found here: GitHub Project.

The project has been updated to support installation through a meta/requirements.yml file and is now available for easy installation from Ansible Galaxy.

Installation via Galaxy:

Run the following command to install:

ansible-galaxy install compscidr.uncompress

Installation via Galaxy / Requirements

Add this to your requirements.yml file:

roles:
- name: compscidr.uncompress

Then execute:

ansible-galaxy install -r requirements.yml

Installation via Git / Requirements

To install from Git, add this to your requirements.yml:

# from GitHub
- src: https://github.com/compscidr/ansible-uncompress
  name: compscidr.uncompress

Then run:

ansible-galaxy install -r requirements.yml

Example Usage:

Here is a simple example of how to use the uncompress module in a playbook:

---
- name: Install a gz file:
  hosts: all
  roles:
    - compscidr.uncompress
  tasks:
  - name: install cheat # Installation instructions: 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'

This example downloads and installs the cheat tool from a .gz file.

Informazioni sul progetto

Enables uncompress of .gz and .bz2 files which aren't tarred

Installa
ansible-galaxy install compscidr.uncompress
Licenza
gpl-3.0
Download
6.8k
Proprietario
Software engineer. Interested in robotics, mesh networks, machine learning and decentralization