feat: add the desktop application roles #47

Merged
aleksei merged 4 commits from feat/desktop-app-roles into main 2026-11-21 02:30:25 +00:00
Owner

What changes

Adds the desktop application roles and wires them into desktop_aleksei:

  • roles/telegram: installs Telegram Desktop 7.4.4 from the official tdesktop
    GitHub release into /opt/telegram. It does not create or rewrite any
    .desktop file or icon; those stay owned by Telegram/Ubuntu.
  • roles/feishin: installs Feishin 1.17.0 from the official GitHub release into
    /opt/feishin and sets chrome-sandbox to mode 4755, which Electron needs
    for its sandbox. It does not create or rewrite any .desktop file or icon.
  • roles/chrome: Google Chrome from the official stable .deb.
  • roles/unsnap: repeats the gist at
    https://gist.github.com/lassekongo83/808b19e034c05d10ac4e3cc259808e4e as
    Ansible tasks, without a copied script: it removes all snaps and snapd,
    unmounts the core snaps, purges snapd and removes the snap directories and
    the user's ~/snap. It runs only when snap/snapd is present.
  • roles/karing: Karing 1.2.26.2934 from the official GitHub .deb. The
    release publishes an amd64 package only.
  • roles/steam: Valve's official Steam installer .deb, with the i386
    foreign architecture enabled first.
  • roles/gamescope: gamescope from the distribution.

The application roles install only when the target is missing; *_update: true
forces a reinstall from the pinned source.

Manual migrations

  • desktop_aleksei: done. /opt/Telegram was moved to /opt/telegram and
    /opt/Feishin to /opt/feishin. The current per-user Telegram launcher and
    D-Bus service were updated to the new path; the stale launcher/service that
    pointed into ~/Downloads were removed. feishin.desktop was updated to
    /opt/feishin/feishin. The roles do not manage these files.
  • dev_aleksei: still pending. Move /opt/Feishin to /opt/feishin and update
    or remove /usr/share/applications/feishin.desktop by hand; the Feishin role
    is not added to that host.

Rollout

The desktop_aleksei migration was done, then the playbook was run. During the
first launch Feishin failed because the migrated tarball had chrome-sandbox
without the setuid bit; the Feishin role now sets it to 4755, and reapplying
the role fixed the host. The full playbook now reports ok=21 changed=0 failed=0 skipped=31.

Feishin starts successfully (App ready, main window created, authentication
against music.kosyrev.name) and gtk-launch feishin launches it. Telegram and
Feishin were stopped for the directory move; Telegram needs to be reopened by
the desktop user. Chrome/Karing/Steam/Gamescope were already present, unsnap
skipped because snap is absent, and the Ghostty config was already in place.

Verification

  • ansible-playbook --syntax-check playbooks/desktop_aleksei.yaml passes.
  • ansible-playbook --list-tasks playbooks/desktop_aleksei.yaml resolves every
    role and task; the Telegram and Feishin roles contain no desktop-entry or icon
    tasks.
  • dprint check passes.
  • The Telegram and Feishin archive layouts, the Chrome/Steam URLs and the
    Karing release assets were checked against the current releases.
## What changes Adds the desktop application roles and wires them into `desktop_aleksei`: - `roles/telegram`: installs Telegram Desktop 7.4.4 from the official tdesktop GitHub release into `/opt/telegram`. It does not create or rewrite any `.desktop` file or icon; those stay owned by Telegram/Ubuntu. - `roles/feishin`: installs Feishin 1.17.0 from the official GitHub release into `/opt/feishin` and sets `chrome-sandbox` to mode `4755`, which Electron needs for its sandbox. It does not create or rewrite any `.desktop` file or icon. - `roles/chrome`: Google Chrome from the official stable `.deb`. - `roles/unsnap`: repeats the gist at https://gist.github.com/lassekongo83/808b19e034c05d10ac4e3cc259808e4e as Ansible tasks, without a copied script: it removes all snaps and snapd, unmounts the core snaps, purges snapd and removes the snap directories and the user's `~/snap`. It runs only when `snap`/`snapd` is present. - `roles/karing`: Karing 1.2.26.2934 from the official GitHub `.deb`. The release publishes an amd64 package only. - `roles/steam`: Valve's official Steam installer `.deb`, with the i386 foreign architecture enabled first. - `roles/gamescope`: `gamescope` from the distribution. The application roles install only when the target is missing; `*_update: true` forces a reinstall from the pinned source. ## Manual migrations - `desktop_aleksei`: done. `/opt/Telegram` was moved to `/opt/telegram` and `/opt/Feishin` to `/opt/feishin`. The current per-user Telegram launcher and D-Bus service were updated to the new path; the stale launcher/service that pointed into `~/Downloads` were removed. `feishin.desktop` was updated to `/opt/feishin/feishin`. The roles do not manage these files. - `dev_aleksei`: still pending. Move `/opt/Feishin` to `/opt/feishin` and update or remove `/usr/share/applications/feishin.desktop` by hand; the Feishin role is not added to that host. ## Rollout The `desktop_aleksei` migration was done, then the playbook was run. During the first launch Feishin failed because the migrated tarball had `chrome-sandbox` without the setuid bit; the Feishin role now sets it to `4755`, and reapplying the role fixed the host. The full playbook now reports `ok=21 changed=0 failed=0 skipped=31`. Feishin starts successfully (`App ready`, main window created, authentication against `music.kosyrev.name`) and `gtk-launch feishin` launches it. Telegram and Feishin were stopped for the directory move; Telegram needs to be reopened by the desktop user. Chrome/Karing/Steam/Gamescope were already present, `unsnap` skipped because snap is absent, and the Ghostty config was already in place. ## Verification - `ansible-playbook --syntax-check playbooks/desktop_aleksei.yaml` passes. - `ansible-playbook --list-tasks playbooks/desktop_aleksei.yaml` resolves every role and task; the Telegram and Feishin roles contain no desktop-entry or icon tasks. - `dprint check` passes. - The Telegram and Feishin archive layouts, the Chrome/Steam URLs and the Karing release assets were checked against the current releases.
aleksei deleted branch feat/desktop-app-roles 2026-11-21 02:30:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/infra!47
No description provided.