mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
6c558e7fe introduced GNOME_EXTENSION_MANAGER_REPO/_REF in both desk-gnome and
desk-gnome-extensions, bound to different lookups - services.gnome.* against
services.gnome-extensions.*. Top-level ALL-CAPS names are project-wide constants
and must resolve to one value, so the same name on two values is what the rule
exists to catch. Prefix each with its role.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
24 lines
864 B
YAML
24 lines
864 B
YAML
---
|
|
- name: 🟢 GNOME Activate Extensions
|
|
ansible.builtin.shell: gsettings set org.gnome.shell disable-user-extensions false
|
|
become: false
|
|
|
|
- name: 📦 Install cli-gnome-extension-manager system-wide via pip
|
|
include_role:
|
|
name: sys-pip-install
|
|
vars:
|
|
# TODO: switch to the PyPI name 'cli-gnome-extension-manager' once it is published
|
|
package_name: "git+{{ DESK_GNOME_EXTENSION_MANAGER_REPO }}@{{ DESK_GNOME_EXTENSION_MANAGER_REF }}"
|
|
global_install: true
|
|
|
|
- name: ▶️ Execute CLI GNOME Extension manager script
|
|
ansible.builtin.shell: >-
|
|
cli-gnome-extension-manager
|
|
"{{ 'enable' if item.value.enabled | bool else 'disable' }}"
|
|
"{{ item.value.config.uuid }}"
|
|
"{{ item.value.config.url }}"
|
|
loop: "{{ lookup('config', application_id, 'addons') | dict2items }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|
|
become: false
|