compscidr.uncompress

ansible-uncompress

Ansibleのためのアンモジュールです。現在、unarchiveの組み込みモジュールではできない.gzおよび.bz2ファイルのダウンロードと解凍が可能です。 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