darkwizard242.msteams

:warning::rotating_light: 此项目不再维护,已被存档。

Ansible角色:msteams

在基于Debian和EL系统上安装(默认为)Microsoft Teams包,或卸载(如果作为变量传递)。

要求

无。

角色变量

可用变量列在下面(位于defaults/main.yml):

变量列表:

msteams_app: teams
msteams_app_desired_state: present

# 基于Debian
msteams_repo_debian_gpg_key: https://packages.microsoft.com/keys/microsoft.asc
msteams_repo_debian: "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main"
msteams_repo_debian_filename: "{{ msteams_app }}"
msteams_repo_debian_desired_state: present

# 基于EL
msteams_repo_el: "https://packages.microsoft.com/yumrepos/ms-teams"
msteams_repo_el_name: teams
msteams_repo_el_description: teams
msteams_repo_el_gpgkey: https://packages.microsoft.com/keys/microsoft.asc
msteams_repo_el_gpgcheck: yes
msteams_repo_el_enabled: yes
msteams_repo_el_filename: "{{ msteams_app }}"
msteams_repo_el_desired_state: present

变量表:

变量 描述
msteams_app 需要安装的Microsoft Teams应用程序包的名称,即teams
msteams_app_desired_state Microsoft Teams包的状态。是否安装、验证是否可用或卸载(即ansible apt模块值:presentlatestabsent
msteams_repo_debian_gpg_key 在基于Debian的系统上所需的Microsoft Teams密钥。
msteams_repo_debian 基于Debian的系统上的Microsoft Teams库URL。
msteams_repo_debian_filename 将存储在Debian系统的/etc/apt/sources.list.d/中的库文件名称。
msteams_repo_debian_desired_state present表示如果在Debian系统上不存在,将创建库文件。另一个选择是absent(不推荐,因为这会阻止安装teams包)。
msteams_repo_el 基于EL系统的Microsoft Teams的库baseurl
msteams_repo_el_name 基于EL系统的Microsoft Teams的库名称。
msteams_repo_el_description 要添加到基于EL的Microsoft Teams库文件中的描述。
msteams_repo_el_gpgkey 在基于EL的系统上所需的Microsoft Teams GPG密钥。
msteams_repo_el_gpgcheck 布尔值,指示是否对基于EL的系统上的Microsoft Teams执行gpg检查。
msteams_repo_el_enabled 布尔值,设置Microsoft Teams库在基于EL系统上是否启用。
msteams_repo_el_filename 将存储在EL系统的/yum/sources.list.d/teams.repo中的库文件名称。
msteams_repo_el_desired_state present表示如果在EL系统上不存在,将创建库文件。另一个选择是absent(不推荐,因为这会阻止安装teams包)。

依赖项

无。

示例剧本

在ansible剧本中默认行为(即安装msteams包)。

- hosts: servers
  roles:
    - darkwizard242.msteams

在ansible剧本中自定义角色行为(即安装/升级到最新版本的teams作为示例)。

- hosts: servers
  roles:
    - darkwizard242.msteams
  vars:
    msteams_apps_desired_state: latest

在ansible剧本中自定义角色行为(即卸载msteams包)。

- hosts: servers
  roles:
    - darkwizard242.msteams
  vars:
    msteams_apps_desired_state: absent

许可证

MIT

作者信息

该角色由Ali Muhammad创建。

关于项目

Installs/Uninstalls 'Mircrosft Teams'.

安装
ansible-galaxy install darkwizard242.msteams
许可证
mit
下载
2.8k
拥有者
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!