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

@@ -33,6 +33,19 @@
loop_control:
label: "{{ item.key }}"
- name: Reject conflicting AI desktop-app lifecycle flags
tags: [always, ai_desktop_apps]
ansible.builtin.assert:
that:
- not (item.value.install_enabled | default(false)
and item.value.uninstall_enabled | default(false) | bool)
fail_msg: >-
{{ item.key }} has both install_enabled and uninstall_enabled set to true.
Choose either installation or removal before running the playbook.
loop: "{{ ai_desktop_apps | default({}) | dict2items }}"
loop_control:
label: "{{ item.key }}"
roles:
- role: dotfiles_common
when: