gotmax23.vscodium

Ansibleロール:vscodium

ロール gotmax23.vscodium Githubリポジトリ SourceHutリポジトリ MITライセンス Githubオープンイシュー Githubオープンプルリクエスト ロールバージョン 前回のバージョン以降のコミット Galaxyロール品質 Galaxyロールダウンロード数 Github Actions Moleculeワークフローの状態 Github Actions Galaxyワークフローの状態

Ansibleロールは、Linuxにvscodiumをインストールします。

ベータWarning

このロールは現在ベータ版であり、商用利用を意図していません。リリース間で破壊的な変更が発生する可能性があるため、リリースノートを必ずお読みください。

要件

このロールは、ansible-coreに含まれていない特定のコレクションに依存しています。

このロールの要件をインストールするには、以下の内容でrequirements.ymlファイルを作成します:

# SPDX-FileCopyrightText: 2022 Maxwell G (@gotmax23)
# SPDX-License-Identifier: CC0-1.0
---
collections:
  - name: community.general

次に、ansible-base/ansible-core 2.10以降を使用している場合は、このコマンドを実行します。

ansible-galaxy install -r requirements.yml

Ansible 2.9をまだ使用している場合は、代わりにこのコマンドを実行します。

ansible-galaxy collection install -r requirements.yml

ロール変数

利用可能なインストール方法

このロールは、利用可能な場合、アップストリームのapt/rpmリポジトリからcodiumをインストールします。Archlinuxでは、ディストリビューションの公式リポジトリからcodeパッケージをインストールします。


このロールの変数とそのデフォルト値は、defaults/main.ymlに設定されています。必要に応じて、これらを変更してロールの動作をカスタマイズできます。

# SPDX-FileCopyrightText: 2022 Maxwell G (@gotmax23)
# SPDX-License-Identifier: CC0-1.0
---
# オプション:
# - `present`はVscodiumがインストールされていることを保証します。
# - `absent`はVscodiumがインストールされていないことを保証します。
vscodium_state: present

# apt/rpmリポジトリのミラーURL。
# 完全なリストは https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo#mirrors を参照してください。
vscodium_mirror: https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo

# インポートする前にapt/rpmリポジトリの署名鍵のフィンガープリントを確認するかどうか。
vscodium_check_key_fingerprint: true

例プレイブック

# SPDX-FileCopyrightText: 2022 Maxwell G (@gotmax23)
# SPDX-License-Identifier: CC0-1.0
---
- name: Vscodiumをインストール
  hosts: all
  become: true

  tasks:
    - name: aptキャッシュを更新
      when: ansible_pkg_mgr == "apt"
      ansible.builtin.apt:
        update_cache: true
        cache_valid_time: 3600

    - name: Vscodiumをインストール
      ansible.builtin.include_role:
        name: "gotmax23.vscodium"

互換性

このロールは、最新のansible-coreバージョンとAnsible Galaxyの最新コレクションのバージョンを使用してテストされています。このロールが公式にサポートしている唯一のAnsibleのバージョンです。他のバージョンに対しては最善の努力でサポートが提供されます。

このロールは、以下のディストリビューションと互換性があります:

ディストリビューション バージョン
Archlinux 任意
Debian buster, bullseye, bookworm
EL 8
Fedora 34, 35, 36
opensuse 15.3, tumbleweed
Ubuntu bionic, focal

ライセンス

MIT

著者

Maxwell G (@gotmax23)

プロジェクトについて

Ansible role that installs vscodium on Linux.

インストール
ansible-galaxy install gotmax23.vscodium
ライセンス
mit
ダウンロード
97
所有者
@gotmax:matrix.org | Fedora developer. Ansible Community Steering Committee member. Pythonista. | See my sr.ht profile for my current code.