compscidr.uncompress

ansible-uncompress

Ansible 的解压模块。让你可以下载未解压的 .gz 和 .bz2 文件,而目前使用内置的 unarchive 模块无法实现这一点。 https://galaxy.ansible.com/compscidr/uncompress

这个项目的灵感来源于对 .gz 和 .bz2 文件不被支持的反馈: https://github.com/ansible/ansible-modules-core/issues/3241#issuecomment-240991265

以及这个项目的存在: https://github.com/vadikgo/uncompress。

更新现有项目以支持通过 meta/requirements.yml 文件进行安装,然后提交到 ansible galaxy,以便能更容易找到和安装。

通过 galaxy 安装:

ansible-galaxy install compscidr.uncompress

通过 galaxy / requirements 安装

requirements.yml 文件中添加以下内容:

roles:
- name: compscidr.uncompress

然后运行 ansible-galaxy install -r requirements.yml

通过 git / requirements 安装

在你的 requirements.yml 文件中添加以下内容:

# 来自 github
- src: https://github.com/compscidr/ansible-uncompress
  name: compscidr.uncompress

然后运行 ansible-galaxy install -r requirements.yml

示例用法:

---
- name: 安装某个 gz 文件:
  hosts: all
  roles:
    - compscidr.uncompress
  tasks:
  - name: 安装 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'
关于项目

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

安装
ansible-galaxy install compscidr.uncompress
许可证
gpl-3.0
下载
6.8k
拥有者
Software engineer. Interested in robotics, mesh networks, machine learning and decentralization