feat: add the gnome role #48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/gnome-role"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changes
roles/gnomechecks that GNOME Shell is installed and fails otherwise; itnever installs GNOME.
https://git.kosyrev.name/zoo/gnome-icon-sepia.gitat the pinnedcommit
b604f50abc9426f4c1d6bfec1fb63a562796e4a4directly into thedesktop user's
~/.local/share/gnome-shell/extensions/gnome-icon-sepia. The extensiondirectory is therefore the git checkout itself; there is no separate cache.
If the directory exists but is not a git checkout, the role replaces it with
a fresh clone. Later runs fetch/checkout the pinned commit in place.
org.gnome.shell enabled-extensions. GNOME50 reads that list at session start, so a newly installed extension takes
effect after a re-login.
gsettings set org.gnome.shell.extensions.dash-to-dock hotkeys-overlay falsegsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L', '<Shift>Alt_L']"The role resolves
gnome_userthroughgetent, runs the git clone and sessioncommands as that user, and fails with a clear message if the user has no session
bus. It requires
gnome_userto be set.desktop_alekseigetsgnome_user: aleksei. The existinggitrole is addedto its playbook before
gnome.Rollout
The
gitrole was applied todesktop_aleksei(ok=3 changed=1);git ls-remotefrom the host returns the pinned commit. Thegnomerole was thenapplied (
ok=17 changed=2): it replaced the old non-git extension directorywith a clone at
/home/aleksei/.local/share/gnome-shell/extensions/gnome-icon-sepia. Thedirectory is now a git repository owned by
aleksei:alekseiat the pinnedcommit; the old
/var/cache/gnome-icon-sepiawas removed. A second run reportsok=16 changed=0 failed=0 skipped=4.gnome-extensions inforeportsEnabled: Yes,State: ACTIVE. Both requestedgsettings values are in place.
Verification
ansible-playbook --syntax-check playbooks/desktop_aleksei.yamlpasses.ansible-playbook --list-tasks playbooks/desktop_aleksei.yamlresolves everyrole and task.
dprint checkpasses.--tags gnomerun is idempotent (changed=0).