diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-23 09:19:06 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-23 09:20:57 +0100 |
| commit | 3cd6aa49beed99b37099f297bdf96ec69469fe0e (patch) | |
| tree | 87d459e54e53239fd4b16a4e45edf4596c2a56b7 /roles/microsoft-teams | |
| parent | 4916784d44a6dad5b90af11c675f6c11198b910b (diff) | |
Add teams role to linux distros
Diffstat (limited to 'roles/microsoft-teams')
| -rw-r--r-- | roles/microsoft-teams/meta/argument_specs.yml | 6 | ||||
| -rw-r--r-- | roles/microsoft-teams/meta/main.yml | 21 | ||||
| -rw-r--r-- | roles/microsoft-teams/tasks/install-archlinux.yml | 8 | ||||
| -rw-r--r-- | roles/microsoft-teams/tasks/install-debian.yml | 7 | ||||
| -rw-r--r-- | roles/microsoft-teams/tasks/main.yml | 3 |
5 files changed, 45 insertions, 0 deletions
diff --git a/roles/microsoft-teams/meta/argument_specs.yml b/roles/microsoft-teams/meta/argument_specs.yml new file mode 100644 index 00000000..a0923915 --- /dev/null +++ b/roles/microsoft-teams/meta/argument_specs.yml @@ -0,0 +1,6 @@ +--- +argument_specs: + main: + short_description: "Install microsoft-teams on Linux distribution" + description: "Install microsoft-teams on Linux distribution" + options: {} diff --git a/roles/microsoft-teams/meta/main.yml b/roles/microsoft-teams/meta/main.yml new file mode 100644 index 00000000..1ff88def --- /dev/null +++ b/roles/microsoft-teams/meta/main.yml @@ -0,0 +1,21 @@ +--- +dependencies: + - role: "yay" + when: ansible_facts['os_family'] == "Archlinux" + - role: "flatpak" + when: ansible_facts['os_family'] == "Debian" +galaxy_info: + author: "a14m" + description: "Install microsoft-teams" + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" + - name: "Ubuntu" + versions: + - "noble" + - name: "Debian" + versions: + - "bookworm" diff --git a/roles/microsoft-teams/tasks/install-archlinux.yml b/roles/microsoft-teams/tasks/install-archlinux.yml new file mode 100644 index 00000000..c3a447d7 --- /dev/null +++ b/roles/microsoft-teams/tasks/install-archlinux.yml @@ -0,0 +1,8 @@ +--- +- name: "Ensure microsoft-teams is installed" + become: true + become_user: "aur_builder" + kewlfft.aur.aur: + name: "teams-for-linux" + state: "present" + use: "yay" diff --git a/roles/microsoft-teams/tasks/install-debian.yml b/roles/microsoft-teams/tasks/install-debian.yml new file mode 100644 index 00000000..7a0e74a3 --- /dev/null +++ b/roles/microsoft-teams/tasks/install-debian.yml @@ -0,0 +1,7 @@ +--- +- name: "Ensure rnote is installed via flathub" + community.general.flatpak: + name: "com.github.IsmaelMartinez.teams_for_linux" + remote: "flathub" + state: "present" + method: "user" diff --git a/roles/microsoft-teams/tasks/main.yml b/roles/microsoft-teams/tasks/main.yml new file mode 100644 index 00000000..71bcbd0d --- /dev/null +++ b/roles/microsoft-teams/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- name: "Include OS-specific tasks" + ansible.builtin.include_tasks: "install-{{ ansible_facts['os_family'] | lower }}.yml" |
