feat: add the ghostty role and the desktop_aleksei host #46

Merged
aleksei merged 7 commits from feat/ghostty-role into main 2026-11-21 01:58:05 +00:00
Owner

What changes

  • roles/ghostty: installs Ghostty with the upstream
    mkasberg/ghostty-ubuntu installer and writes
    /root/.config/ghostty/config.ghostty by default. The file is rendered
    verbatim from ghostty_config; no generated header is added.
  • The installer runs only when the ghostty package is missing. Set
    ghostty_update: true to run it again and pick up the latest release.
  • The configuration is the requested one: the One Dark colors, the Ctrl+Shift
    clipboard/tab/split/search/window/quit bindings, and Ctrl+Enter as a literal
    newline. The whole file is the ghostty_config variable, so a host can
    replace it from host_vars.
  • inventory.ini and host_vars/desktop_aleksei.yaml: the new
    desktop_aleksei host at desktop-aleksei.lan. Ansible logs in as aleksei;
    the host_vars carries no SSH key management.
  • playbooks/desktop_aleksei.yaml: runs only the ghostty role. It enables
    become for the package install and writes the config to
    /home/aleksei/.config/ghostty/config.ghostty, owned by aleksei. No other
    roles are added to this host.
  • playbooks/dev_aleksei.yaml: ghostty is not added there.

Rollout

Converged on desktop_aleksei. Ghostty 1.4.0 was already installed, so the
installer was skipped; the requested config is in place (14 lines, 11 keybind
entries) with the literal ctrl+enter=text:\n. The file is owned by
aleksei:aleksei with mode 0644; the parent ~/.config was left at its
original mode 0700. A second run reports changed=0.

Verification

  • ansible-playbook --syntax-check passes for both desktop_aleksei.yaml and
    dev_aleksei.yaml.
  • dprint check passes.
  • The rendered config matches the requested content; the
    ctrl+enter=text:\n line keeps the literal backslash-n, and the file has no
    extra header.
  • The config path was checked against the Ghostty docs and source:
    $XDG_CONFIG_HOME/ghostty/config.ghostty is the current name.
## What changes - `roles/ghostty`: installs Ghostty with the upstream `mkasberg/ghostty-ubuntu` installer and writes `/root/.config/ghostty/config.ghostty` by default. The file is rendered verbatim from `ghostty_config`; no generated header is added. - The installer runs only when the `ghostty` package is missing. Set `ghostty_update: true` to run it again and pick up the latest release. - The configuration is the requested one: the One Dark colors, the Ctrl+Shift clipboard/tab/split/search/window/quit bindings, and Ctrl+Enter as a literal newline. The whole file is the `ghostty_config` variable, so a host can replace it from `host_vars`. - `inventory.ini` and `host_vars/desktop_aleksei.yaml`: the new `desktop_aleksei` host at `desktop-aleksei.lan`. Ansible logs in as `aleksei`; the host_vars carries no SSH key management. - `playbooks/desktop_aleksei.yaml`: runs only the `ghostty` role. It enables `become` for the package install and writes the config to `/home/aleksei/.config/ghostty/config.ghostty`, owned by `aleksei`. No other roles are added to this host. - `playbooks/dev_aleksei.yaml`: ghostty is not added there. ## Rollout Converged on `desktop_aleksei`. Ghostty 1.4.0 was already installed, so the installer was skipped; the requested config is in place (14 lines, 11 keybind entries) with the literal `ctrl+enter=text:\n`. The file is owned by `aleksei:aleksei` with mode `0644`; the parent `~/.config` was left at its original mode `0700`. A second run reports `changed=0`. ## Verification - `ansible-playbook --syntax-check` passes for both `desktop_aleksei.yaml` and `dev_aleksei.yaml`. - `dprint check` passes. - The rendered config matches the requested content; the `ctrl+enter=text:\n` line keeps the literal backslash-n, and the file has no extra header. - The config path was checked against the Ghostty docs and source: `$XDG_CONFIG_HOME/ghostty/config.ghostty` is the current name.
aleksei changed title from feat: add the ghostty role to feat: add the ghostty role and the desktop_aleksei host 2026-11-21 01:51:34 +00:00
aleksei deleted branch feat/ghostty-role 2026-11-21 01:58:05 +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!46
No description provided.