2021-01-31 17:21:39 -06:00
|
|
|
---
|
2021-02-06 15:33:26 -06:00
|
|
|
# Use flatpaks because they're consistent! :)
|
2021-01-31 17:21:39 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
## Flatpak Pre-reqs ##
|
2021-02-14 08:04:58 -06:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Install
|
2020-12-21 05:23:56 -06:00
|
|
|
package:
|
|
|
|
name: flatpak
|
|
|
|
update_cache: yes
|
|
|
|
|
2021-02-14 08:04:58 -06:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Add Flathub for System
|
2020-12-21 05:23:56 -06:00
|
|
|
flatpak_remote:
|
|
|
|
name: flathub
|
|
|
|
state: present
|
|
|
|
method: system
|
|
|
|
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
|
|
|
2021-02-06 15:33:26 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
## Flatpak Installs ##
|
|
|
|
|
|
|
|
# Generic #
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic Installs
|
2020-12-21 05:23:56 -06:00
|
|
|
flatpak:
|
2021-02-14 07:54:57 -06:00
|
|
|
name: "{{ item }}"
|
2021-02-06 15:33:26 -06:00
|
|
|
remote: flathub
|
|
|
|
state: present
|
2021-02-14 07:54:57 -06:00
|
|
|
loop:
|
|
|
|
- org.mozilla.Thunderbird
|
|
|
|
- com.discordapp.Discord
|
2021-07-09 19:06:53 -05:00
|
|
|
- org.telegram.desktop
|
2021-02-14 08:06:21 -06:00
|
|
|
- io.lbry.lbry-app
|
2021-07-01 05:58:08 -05:00
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
# Coding #
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding Installs
|
|
|
|
flatpak:
|
|
|
|
name: "{{ item }}"
|
|
|
|
remote: flathub
|
|
|
|
state: present
|
|
|
|
loop:
|
2021-02-14 07:54:57 -06:00
|
|
|
- com.visualstudio.code-oss
|
|
|
|
- com.google.AndroidStudio
|
2021-07-01 05:58:08 -05:00
|
|
|
- com.jetbrains.PyCharm-Community
|
|
|
|
ignore_errors: yes
|
|
|
|
when: coding is defined
|
|
|
|
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding Uninstalls
|
|
|
|
flatpak:
|
|
|
|
name: "{{ item }}"
|
|
|
|
remote: flathub
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
- com.visualstudio.code-oss
|
|
|
|
- com.google.AndroidStudio
|
|
|
|
- com.jetbrains.PyCharm-Community
|
|
|
|
ignore_errors: yes
|
|
|
|
when: coding is not defined
|
|
|
|
|
|
|
|
# Editor #
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editor Installs
|
|
|
|
flatpak:
|
|
|
|
name: "{{ item }}"
|
|
|
|
remote: flathub
|
|
|
|
state: present
|
|
|
|
loop:
|
2021-02-14 08:06:21 -06:00
|
|
|
- org.shotcut.Shotcut
|
|
|
|
- com.obsproject.Studio
|
2021-03-21 08:41:52 -05:00
|
|
|
- org.gimp.GIMP
|
2021-07-01 05:58:08 -05:00
|
|
|
- org.audacityteam.Audacity
|
|
|
|
ignore_errors: yes
|
|
|
|
when: editing is defined
|
|
|
|
|
2021-07-09 19:06:53 -05:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editor Uninstalls
|
2021-07-01 05:58:08 -05:00
|
|
|
flatpak:
|
|
|
|
name: "{{ item }}"
|
|
|
|
remote: flathub
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
- org.shotcut.Shotcut
|
|
|
|
- com.obsproject.Studio
|
|
|
|
- org.gimp.GIMP
|
|
|
|
- org.audacityteam.Audacity
|
2021-05-22 17:07:09 -05:00
|
|
|
ignore_errors: yes
|
2021-07-01 05:58:08 -05:00
|
|
|
when: editing is not defined
|
2021-02-14 07:54:57 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
# Games #
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming Installs
|
|
|
|
flatpak:
|
|
|
|
name: "{{ item }}"
|
|
|
|
remote: flathub
|
|
|
|
state: present
|
|
|
|
loop:
|
|
|
|
- com.valvesoftware.Steam
|
|
|
|
ignore_errors: yes
|
|
|
|
when: gaming is defined
|
|
|
|
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming Uninstalls
|
|
|
|
flatpak:
|
|
|
|
name: "{{ item }}"
|
|
|
|
remote: flathub
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
- com.valvesoftware.Steam
|
|
|
|
ignore_errors: yes
|
|
|
|
when: gaming is not defined
|
|
|
|
|
|
|
|
# Removals #
|
2021-02-14 08:04:58 -06:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Application Uninstalls
|
2021-02-07 09:14:42 -06:00
|
|
|
flatpak:
|
2021-02-14 07:54:57 -06:00
|
|
|
name: "{{ item }}"
|
2021-02-07 09:14:42 -06:00
|
|
|
remote: flathub
|
2021-02-14 08:07:14 -06:00
|
|
|
state: absent
|
2021-02-14 07:54:57 -06:00
|
|
|
loop:
|
|
|
|
- org.mozilla.firefox
|
2021-02-14 08:19:13 -06:00
|
|
|
- com.visualstudio.code # Why does this throw an error? It's the correct ID.
|
2021-05-20 07:10:54 -05:00
|
|
|
- org.midori_browser.Midori
|
|
|
|
- com.github.Eloston.UngoogledChromium
|
2021-02-14 08:19:13 -06:00
|
|
|
ignore_errors: yes
|
2021-02-14 07:49:47 -06:00
|
|
|
|
2020-12-28 18:37:37 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
## Other Stuff ##
|
|
|
|
|
2021-02-14 08:19:13 -06:00
|
|
|
# Software not yet available or working properly in Flatpak form.
|
2021-05-22 17:25:08 -05:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Install From Repo
|
2020-12-28 20:21:01 -06:00
|
|
|
package:
|
2021-05-22 17:25:08 -05:00
|
|
|
name:
|
|
|
|
- "{{ firefox_esr }}"
|
|
|
|
- vlc
|
|
|
|
- "{{ appimagelauncher }}"
|
2021-02-06 15:33:26 -06:00
|
|
|
state: present
|
2021-02-06 11:27:20 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Remove Firefox Normal
|
2021-02-06 11:27:20 -06:00
|
|
|
package:
|
|
|
|
name:
|
2021-07-01 05:58:08 -05:00
|
|
|
- "{{ firefox }}"
|
2021-02-06 11:27:20 -06:00
|
|
|
state: absent
|
2021-07-01 05:58:08 -05:00
|
|
|
when: firefox != firefox_esr
|
2021-02-06 06:48:59 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
# Lutris #
|
2021-02-28 08:25:10 -06:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Add Lutris PPA (Ubuntu)
|
|
|
|
apt_repository:
|
|
|
|
repo: ppa:lutris-team/lutris
|
|
|
|
update_cache: yes
|
|
|
|
state: present
|
2021-07-01 05:58:08 -05:00
|
|
|
when: ansible_distribution == "Ubuntu" and gaming is defined
|
2021-02-28 08:25:10 -06:00
|
|
|
|
2021-05-22 17:25:08 -05:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Add Lutris (besides ARM)
|
2021-02-11 15:03:36 -06:00
|
|
|
package:
|
2021-02-28 08:25:10 -06:00
|
|
|
name:
|
|
|
|
- lutris
|
2021-02-11 15:03:36 -06:00
|
|
|
state: present
|
2021-07-01 05:58:08 -05:00
|
|
|
when: ansible_architecture != "aarch64" and gaming is defined
|
2021-02-11 15:03:36 -06:00
|
|
|
|
2021-07-01 05:58:08 -05:00
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Remove Lutris (besides ARM)
|
2021-02-06 06:48:59 -06:00
|
|
|
package:
|
2021-07-01 05:58:08 -05:00
|
|
|
name:
|
|
|
|
- lutris
|
|
|
|
state: absent
|
|
|
|
ignore_errors: yes
|
|
|
|
when: ansible_architecture != "aarch64" and gaming is not defined
|
|
|
|
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Remove Lutris PPA (Ubuntu)
|
|
|
|
apt_repository:
|
|
|
|
repo: ppa:lutris-team/lutris
|
|
|
|
update_cache: yes
|
2021-05-22 17:25:08 -05:00
|
|
|
state: absent
|
2021-07-01 05:58:08 -05:00
|
|
|
when: ansible_distribution == "Ubuntu" and gaming is not defined
|
|
|
|
|
|
|
|
# Remove Repo Software #
|
|
|
|
- name: Workstation | Linux | Flatpak Distro | Package Manager | Remove Applications
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- "{{ thunderbird }}"
|
|
|
|
- "{{ evolution }}"
|
|
|
|
- steam
|
|
|
|
- vscode
|
|
|
|
- code
|
|
|
|
state: absent
|