Add lifecycle flags for AI desktop applications

Manage ChatGPT Desktop, OpenCode Desktop, and Cline Desktop with the same install/uninstall lifecycle pattern used by the CLI coding agents: independent flags per app, a shared ai_desktop_apps map, a common pre-task that rejects conflicting install/uninstall pairs, and explicit install and removal task flows.

ChatGPT opts in per host through chatgpt_desktop_install_enabled, Cline opts in through the desktop_gnome group vars, and OpenCode Desktop keeps removal selected so the retired opencode RPM and every cached download converge away on graphical hosts. Removal never touches user data, GNOME favorites, or the npm-managed CLI counterparts.
This commit is contained in:
2026-11-08 22:02:17 +01:00
parent ccb4a0daa6
commit f09a708fe9
12 changed files with 316 additions and 67 deletions

View File

@@ -4,8 +4,9 @@ desktop_environment: gnome
desktop_sessions_enabled: []
desktop_default_session: gnome
emacs_enabled: true
cline_desktop_enabled: true
cline_desktop_launcher: Cline.desktop
# Cline Desktop is installed (and pinned in the GNOME favorites) on every
# GNOME host; set cline_desktop_uninstall_enabled here to remove it instead.
cline_desktop_install_enabled: true
# Fedora Workstation/GNOME desktop applications. Keep this profile separate from
# workstation_* so nymph can remain a desktop laptop rather than a dev workstation.

View File

@@ -64,6 +64,9 @@ fedora_flatpak_remote_name: flathub
fedora_flatpak_remote_url: https://dl.flathub.org/repo/flathub.flatpakrepo
cline_desktop_version: "0.0.49"
# Launcher file shipped by the pinned RPM; the GNOME profile pins it in the
# favorites while installation stays enabled.
cline_desktop_launcher: Cline.desktop
# Digests published with the official GitHub release; update with the version.
cline_desktop_rpm_checksums:
x86_64: sha256:e10036a036ee531451695559e2c96feceb3d621408a6615bdd708ffcf9e778ab
@@ -72,7 +75,38 @@ cline_desktop_rpm_url: >-
https://github.com/cline/cline/releases/download/desktop-v{{ cline_desktop_version }}/Cline_{{ cline_desktop_version }}_{{ ansible_facts['architecture'] }}.rpm
cline_desktop_rpm_path: "/var/cache/cline-desktop-{{ cline_desktop_version }}-{{ ansible_facts['architecture'] }}.rpm"
chatgpt_desktop_enabled: false
# OpenCode Desktop was replaced by Cline Desktop. The pinned release stays
# available for reinstall, while removal is selected in the lifecycle flags
# below so leftovers from the switch converge away on graphical hosts.
opencode_desktop_version: "2.2.5"
# Digests published with the official GitHub release; update with the version.
opencode_desktop_rpm_checksums:
x86_64: sha256:4feb27fe98df9b7579abd31a790d331e9aff87c95f67081beefa2aaaa76ebada
aarch64: sha256:e84b1e03e2b4fb337ddfe015b6457a7aa0dfe171338be08e643ad66b1657033a
opencode_desktop_rpm_url: >-
https://github.com/anomalyco/opencode/releases/download/v{{ opencode_desktop_version }}/opencode-desktop-linux-{{ ansible_facts['architecture'] }}.rpm
opencode_desktop_rpm_path: "/var/cache/opencode-desktop-{{ opencode_desktop_version }}-{{ ansible_facts['architecture'] }}.rpm"
# AI desktop-app lifecycle controls are independent for every app and mirror
# the CLI coding-agent flags. Installation and removal are mutually exclusive
# per app; the common pre-task enforces this before any changes are made.
# ChatGPT opts in per host, Cline opts in through desktop_gnome group vars.
chatgpt_desktop_install_enabled: false
chatgpt_desktop_uninstall_enabled: false
opencode_desktop_install_enabled: false
opencode_desktop_uninstall_enabled: true
ai_desktop_apps:
chatgpt_desktop:
install_enabled: "{{ chatgpt_desktop_install_enabled }}"
uninstall_enabled: "{{ chatgpt_desktop_uninstall_enabled }}"
opencode_desktop:
install_enabled: "{{ opencode_desktop_install_enabled }}"
uninstall_enabled: "{{ opencode_desktop_uninstall_enabled }}"
cline_desktop:
install_enabled: "{{ cline_desktop_install_enabled | default(false) }}"
uninstall_enabled: "{{ cline_desktop_uninstall_enabled | default(false) }}"
chatgpt_desktop_supported_fedora_versions:
- "43"
- "44"