Remove GNOME extension management from workstation setup
This commit is contained in:
@@ -31,11 +31,6 @@
|
||||
- name: Define system desired Flatpaks
|
||||
ansible.builtin.set_fact:
|
||||
desired_system_flatpaks:
|
||||
# GNOME Software
|
||||
- "{{ 'org.gnome.Extensions' if (ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP) else omit }}"
|
||||
- "{{ 'org.gnome.Weather' if (ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP) else omit }}"
|
||||
- "{{ 'org.gnome.Sudoku' if (ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP) else omit }}"
|
||||
|
||||
# Games
|
||||
- io.github.openhv.OpenHV
|
||||
- info.beyondallreason.bar
|
||||
@@ -53,10 +48,6 @@
|
||||
- org.signal.Signal
|
||||
- com.spotify.Client
|
||||
|
||||
# Nextcloud Compatible Utilities
|
||||
- io.github.mrvladus.List
|
||||
- org.gnome.World.Iotas
|
||||
|
||||
# 3D Printing
|
||||
- com.bambulab.BambuStudio
|
||||
- io.mango3d.LycheeSlicer
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
- name: Install Pano - Clipboard Manager dependencies
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- gir1.2-gda-5.0
|
||||
- gir1.2-gsound-1.0
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: Install Pano - Clipboard Manager
|
||||
ansible.builtin.import_tasks: tasks/workstations/gnome-extensions/pano.yml
|
||||
|
||||
- name: Install Tiling Shell - Window Manager
|
||||
ansible.builtin.import_tasks: tasks/workstations/gnome-extensions/tilingshell.yml
|
||||
|
||||
- name: Install Quick Settings Tweaks
|
||||
ansible.builtin.import_tasks: tasks/workstations/gnome-extensions/quick-settings.yml
|
||||
@@ -1,73 +0,0 @@
|
||||
---
|
||||
- name: Manage GNOME extension
|
||||
vars:
|
||||
requested_git_tag: "{{ git_tag }}"
|
||||
extension_name: "{{ ext_name }}"
|
||||
extension_url: "{{ ext_url }}"
|
||||
extension_path: "{{ ansible_user_dir }}/.local/share/gnome-shell/extensions/{{ ext_id }}"
|
||||
version_file: "{{ extension_path }}/version.txt"
|
||||
block:
|
||||
- name: Check if extension is installed
|
||||
ansible.builtin.stat:
|
||||
path: "{{ extension_path }}"
|
||||
register: ext_check
|
||||
|
||||
- name: Read last installed version
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ version_file }}"
|
||||
register: installed_version
|
||||
ignore_errors: true
|
||||
when: ext_check.stat.exists
|
||||
|
||||
- name: Determine if update is needed
|
||||
ansible.builtin.set_fact:
|
||||
update_needed: >-
|
||||
{{ installed_version.content is not defined or
|
||||
(installed_version.content | b64decode | trim != requested_git_tag) }}
|
||||
|
||||
- name: Delete old extension if updating
|
||||
ansible.builtin.file:
|
||||
path: "{{ extension_path }}"
|
||||
state: absent
|
||||
when: update_needed
|
||||
|
||||
- name: Create directory for extension
|
||||
ansible.builtin.file:
|
||||
path: "{{ extension_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
when: not ext_check.stat.exists or update_needed
|
||||
|
||||
- name: Download extension
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ extension_url | replace('%TAG%', requested_git_tag) }}"
|
||||
dest: "{{ extension_path }}/release.zip"
|
||||
mode: "0644"
|
||||
when: update_needed or not ext_check.stat.exists
|
||||
|
||||
- name: Extract extension
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ extension_path }}/release.zip"
|
||||
dest: "{{ extension_path }}"
|
||||
when: update_needed or not ext_check.stat.exists
|
||||
|
||||
- name: Store installed version of the extension
|
||||
ansible.builtin.copy:
|
||||
content: "{{ requested_git_tag }}"
|
||||
dest: "{{ version_file }}"
|
||||
mode: "0644"
|
||||
when: update_needed or not ext_check.stat.exists
|
||||
|
||||
- name: Cleanup post installation
|
||||
ansible.builtin.file:
|
||||
path: "{{ extension_path }}/release.zip"
|
||||
state: absent
|
||||
when: not ext_check.stat.exists or update_needed
|
||||
|
||||
- name: Notify user of required GNOME Shell reload
|
||||
ansible.builtin.debug:
|
||||
msg: >
|
||||
Please reload GNOME Shell by pressing Alt + F2, typing 'r' and pressing Enter.
|
||||
Then enable the {{ extension_name }} in GNOME Tweaks.
|
||||
Or on Wayland, log out and back in.
|
||||
when: not ext_check.stat.exists or update_needed
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- name: Manage Pano Clipboard Manager
|
||||
ansible.builtin.include_tasks: tasks/workstations/gnome-extensions/manage_gnome_extension.yml
|
||||
vars:
|
||||
git_tag: "v23-alpha5"
|
||||
ext_name: "Pano - Clipboard Manager"
|
||||
ext_url: "https://github.com/oae/gnome-shell-pano/releases/download/%TAG%/pano@elhan.io.zip"
|
||||
ext_id: "pano@elhan.io"
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- name: Manage Quick Settings Tweaks
|
||||
ansible.builtin.include_tasks: tasks/workstations/gnome-extensions/manage_gnome_extension.yml
|
||||
vars:
|
||||
git_tag: "2.1-stable"
|
||||
ext_name: "Quick Settings Tweaks"
|
||||
ext_url: "https://github.com/qwreey/quick-settings-tweaks/releases/download/2.1-stable/2.1-release.zip"
|
||||
ext_id: "quick-settings-tweaks@qwreey"
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
- name: Manage Tiling Shell - Window Manager
|
||||
ansible.builtin.include_tasks: tasks/workstations/gnome-extensions/manage_gnome_extension.yml
|
||||
vars:
|
||||
git_tag: "16.3"
|
||||
ext_name: "Tiling Shell - Window Manager"
|
||||
ext_url: "https://github.com/domferr/tilingshell/releases/download/%TAG%/tilingshell@ferrarodomenico.com.zip"
|
||||
ext_id: "tilingshell@ferrarodomenico.com"
|
||||
@@ -8,10 +8,6 @@
|
||||
ansible.builtin.import_tasks: tasks/workstations/cliphist.yml
|
||||
when: "'microsoft-standard-WSL2' not in ansible_kernel"
|
||||
|
||||
- name: Include GNOME Extensions tasks
|
||||
ansible.builtin.import_tasks: tasks/workstations/gnome-extensions.yml
|
||||
when: ansible_facts.env.XDG_CURRENT_DESKTOP is defined and 'GNOME' in ansible_facts.env.XDG_CURRENT_DESKTOP and 'microsoft-standard-WSL2' not in ansible_kernel
|
||||
|
||||
- name: Include Firefox APT installation tasks
|
||||
ansible.builtin.import_tasks: tasks/workstations/firefox-apt.yml
|
||||
when: ansible_pkg_mgr == 'apt' and ansible_facts.packages.snapd is defined and 'microsoft-standard-WSL2' not in ansible_kernel
|
||||
|
||||
Reference in New Issue
Block a user