msteams

:warning::rotating_light: This project is no longer maintained and has been archived.

Ansible Role: msteams

Role to install (by default) Microsoft Teams package or uninstall (if passed as var) on Debian based systems and EL based systems.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables List:

msteams_app: teams
msteams_app_desired_state: present

# Debian family based
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 family based
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

Variables table:

Variable Description
msteams_app Name of Microsft Teams application package require to be installed i.e. teams
msteams_app_desired_state State of the Microsft Teams package. Whether to install, verify if available or to uninstall (i.e. ansible apt module values: present, latest, or absent)
msteams_repo_debian_gpg_key Microsft Teams key required on Debian family systems.
msteams_repo_debian Microsft Teams repo URL for Debain family systems.
msteams_repo_debain_filename Name of the repository file that will be stored at /etc/apt/sources.list.d/ on Debian based systems.
msteams_repo_debian_desired_state present indicates creating the repository file if it doesn't exist on Debian based systems. Alternative is absent (not recommended as it will prevent from installation of teams package).
msteams_repo_el Repository baseurl for Microsft Teams on EL based systems.
msteams_repo_el_name Repository name for Microsft Teams on EL based systems.
msteams_repo_el_description Description to be added in EL based repository file for Microsft Teams.
msteams_repo_el_gpgkey Microsft Teams GPG key required on EL family systems
msteams_repo_el_gpgcheck Boolean for whether to perform gpg check against Microsft Teams on EL based systems.
msteams_repo_el_enabled Boolean to set so that Microsft Teams repository is enabled on EL based systems.
msteams_repo_el_filename Name of the repository file that will be stored at /yum/sources.list.d/teams.repo on EL based systems.
msteams_repo_el_desired_state present indicates creating the repository file if it doesn't exist on EL based systems. Alternative is absent (not recommended as it will prevent from installation of teams package).

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of msteams package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.msteams

For customizing behavior of role (i.e. installing/upgrading to latest version of teams as an example) in ansible playbooks.

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

For customizing behavior of role (i.e. un-installation of msteams package) in ansible playbooks.

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

License

MIT

Author Information

This role was created by Ali Muhammad.

About

Installs/Uninstalls 'Mircrosft Teams'.

Install
ansible-galaxy install darkwizard242/ansible-role-msteams
GitHub repository
License
mit
Downloads
2326
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!