gotmax23.vscodium

Ansible角色: vscodium

角色 gotmax23.vscodium
Github仓库
SourceHut仓库
MIT许可证
Github打开问题
Github打开PR
角色版本
自上一个版本以来的提交
Galaxy角色质量
Galaxy角色下载量
Github Actions Molecule工作流状态
Github Actions Galaxy工作流状态

一个在Linux上安装vscodium的Ansible角色。

Beta警告

此角色目前处于测试阶段,不适合用于生产环境。版本之间可能会发生重大更改,因此请务必查看发布说明。

要求

此角色依赖于某些不包含在ansible-core中的集合。

要安装此角色的要求,请创建一个requirements.yml文件,内容如下:

# SPDX-文件版权文本: 2022 Maxwell G (@gotmax23)
# SPDX-许可证标识: 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-文件版权文本: 2022 Maxwell G (@gotmax23)
# SPDX-许可证标识: CC0-1.0
---
# 选项:
# - `present` 确保 Vscodium 被安装。
# - `absent` 确保 Vscodium 未被安装。
vscodium_state: present

# apt/rpm仓库镜像网址。
# 有关完整列表,请参见 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-文件版权文本: 2022 Maxwell G (@gotmax23)
# SPDX-许可证标识: 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的最新版本集合进行测试。这是此角色正式支持的唯一版本。为其他版本提供尽力支持。

此角色与以下发行版兼容:

发行版 版本
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.