mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
PKGMGR_REPO_URL / PKGMGR_REF were defined with `lookup('config', role_name, …)`.
The vars are referenced via `vars:` in pkgmgr's own task that does
`include_role: name: sys-util-git-pull`, and Ansible templates that `vars:`
block inside the included-role context — so `role_name` was already
`sys-util-git-pull` at evaluation time, not `pkgmgr`.
That produced a config lookup against `applications['sys-util-git-pull'].services.sys-util-git-pull.repository`,
which fails because sys-util-git-pull's services.yml declares the entity as
`util-git-pull` (no `sys-` prefix, per the established sys-* convention) and
has no `repository` key.
Hardcoding the application_id keeps the lookup immune to role_name drift no
matter where the var is referenced from.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
892 B
YAML
19 lines
892 B
YAML
---
|
|
# Variables for Kevin's Package Manager installation
|
|
|
|
# The Git repository URL for Kevin's Package Manager
|
|
PKGMGR_REPO_URL: "{{ lookup('config', 'pkgmgr', 'services.pkgmgr.repository') }}"
|
|
PKGMGR_REF: "{{ lookup('config', 'pkgmgr', 'services.pkgmgr.ref') }}"
|
|
|
|
# The directory where executable aliases will be installed (ensure it's in your PATH)
|
|
PKGMGR_BINARIES_DIR: "/usr/local/bin"
|
|
|
|
# Directory which contains all Repositories managed by Kevin's Package Manager
|
|
PKGMGR_REPOSITORIES_DIR: "/opt/Repositories/"
|
|
|
|
# The directory where the repository will be cloned
|
|
PKGMGR_INSTALL_PATH: "{{ [ PKGMGR_REPOSITORIES_DIR, 'github.com/kevinveenbirkenbach/package-manager' ] | path_join }}"
|
|
|
|
# Known SSH host key for github.com (ed25519) - static to avoid ssh-keyscan at runtime
|
|
PKGMGR_GITHUB_HOST_KEY: "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"
|