Skip to content

Commit 8b3432f

Browse files
author
Derek
committed
fix: Fix Dash to Panel and wallpaper installation on Ubuntu
- Replace pipx/gext with direct download from extensions.gnome.org for Dash to Panel (v66, GNOME 46 compatible) - Move wallpaper file from playbooks/ to role files/ directory for reliable path resolution - Simplify wallpaper.yml to use role src file directly instead of playbook_dir lookup
1 parent 3307445 commit 8b3432f

3 files changed

Lines changed: 5450 additions & 54 deletions

File tree

ansible/roles/dfe_developer/tasks/gnome.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
- firefox
4444
- gnome-shell-extensions
4545
- gnome-shell-extension-manager
46-
- pipx
46+
- unzip
4747
state: present
4848

4949
- name: Install System Monitor extension (Ubuntu)
@@ -58,25 +58,32 @@
5858
state: present
5959
failed_when: false # May not be available on all Ubuntu versions
6060

61-
- name: Install gnome-extensions-cli via pipx
62-
ansible.builtin.command:
63-
cmd: pipx install gnome-extensions-cli --include-deps
64-
args:
65-
creates: "{{ dfe_user_home }}/.local/bin/gext"
66-
become: false
61+
# Download Dash to Panel directly from extensions.gnome.org
62+
# GNOME 46 compatible version (shell-version=46)
63+
- name: Create Dash to Panel extension directory
64+
ansible.builtin.file:
65+
path: /usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com
66+
state: directory
67+
mode: '0755'
6768

68-
- name: Ensure pipx bin directory is in PATH
69-
ansible.builtin.command:
70-
cmd: pipx ensurepath
71-
become: false
72-
changed_when: false
73-
74-
- name: Install Dash to Panel extension via gext (to system-wide location)
75-
ansible.builtin.shell:
76-
cmd: "{{ dfe_user_home }}/.local/bin/gext install --system dash-to-panel@jderose9.github.com"
77-
register: gext_install
78-
changed_when: "'is now installed' in gext_install.stdout or 'is already installed' not in gext_install.stdout"
79-
failed_when: false # Don't fail if already installed
69+
- name: Download Dash to Panel extension
70+
ansible.builtin.get_url:
71+
url: "https://extensions.gnome.org/extension-data/dash-to-paneljderose9.github.com.v66.shell-extension.zip"
72+
dest: /tmp/dash-to-panel.zip
73+
mode: '0644'
74+
register: dash_to_panel_download
75+
76+
- name: Extract Dash to Panel extension
77+
ansible.builtin.unarchive:
78+
src: /tmp/dash-to-panel.zip
79+
dest: /usr/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com
80+
remote_src: true
81+
when: dash_to_panel_download.changed
82+
83+
- name: Clean up Dash to Panel zip
84+
ansible.builtin.file:
85+
path: /tmp/dash-to-panel.zip
86+
state: absent
8087

8188
when: ansible_distribution == 'Ubuntu'
8289

0 commit comments

Comments
 (0)