gotmax23.zoom

Ansible 角色:zoom

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

此 Ansible 角色可在 Linux 上安装 Zoom 客户端。

Beta 警告

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

需求

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

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

# SPDX-FileCopyrightText: 2021 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

角色变量

以下是该角色的变量及其默认值,定义在 defaults/main.yml 中。如果需要,您可以更改它们以自定义该角色的行为。

# SPDX-FileCopyrightText: 2021 Maxwell G (@gotmax23)
# SPDX-License-Identifier: CC0-1.0
---
# 选项:
# - `present` 确保安装了 Zoom。
# - `absent` 确保未安装 Zoom。
zoom_state: present

# 此选项决定是否检查 zoom 的 rpm 密钥指纹。
zoom_check_rpm_key: true

# 此变量决定该角色下载 Zoom pacman pkg 存档的位置。
# 仅适用于 Archlinux。
zoom_pacman_pkg_download_dir: /opt

示例剧本

# SPDX-FileCopyrightText: 2021 Maxwell G (@gotmax23)
# SPDX-License-Identifier: CC0-1.0
---
- name: 安装 zoom
  hosts: all
  become: true

  tasks:
    - name: 更新 apt 缓存
      when: ansible_pkg_mgr == "apt"
      ansible.builtin.apt:
        update_cache: true
        cache_valid_time: 3600

    - name: 安装 zoom
      ansible.builtin.include_role:
        name: "gotmax23.zoom"

兼容性

此角色使用最新版本的 ansible-core 和 Ansible Galaxy 中最新版本的集合进行测试。这是该角色官方支持的唯一 Ansible 版本。对其他版本提供尽力支持。

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

发行版 版本
Archlinux 任何
Debian buster, bullseye, bookworm
EL 7, 8
Fedora 34, 35, 36
opensuse 15.3, tumbleweed
Ubuntu bionic, focal

许可

MIT

作者

Maxwell G (@gotmax23)

关于项目

Ansible role that installs the Zoom client on Linux.

安装
ansible-galaxy install gotmax23.zoom
许可证
mit
下载
74
拥有者
@gotmax:matrix.org | Fedora developer. Ansible Community Steering Committee member. Pythonista. | See my sr.ht profile for my current code.