mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-30 01:40:03 +00:00
- Move run_once include from main.yml to 01_core.yml in desk-gnome-caffeine and desk-ssh - Introduce sys-svc-cdn/01_core.yml to handle shared/vendor dirs once and role dirs per run - Replace cdn.* with cdn_paths_all.* across inj roles - Split cdn_dirs into cdn_dirs_role and CDN_DIRS_GLOBAL - Ensure cdn_urls uses cdn_paths_all Details: https://chatgpt.com/share/68b58d64-1e28-800f-8907-36926a9e9a9b
sys-svc-cdn
CDN helper role for building a consistent asset tree, URLs, and on-disk layout.
Description
Provides compact filters and defaults to define CDN paths, turn them into public URLs, collect required directories, and prepare the filesystem (including a latest release link).
Overview
Defines a per-role CDN structure under roles/<application_id>/<version> plus shared and vendor areas. Exposes ready-to-use variables (cdn, cdn_dirs, cdn_urls) and ensures directories exist. Optionally links the current release to latest.
Features
- Jinja filters:
cdn_paths,cdn_urls,cdn_dirs - Variables:
CDN_ROOT,CDN_VERSION,CDN_BASE_URL,cdn,cdn_dirs,cdn_urls - Creates shared/vendor/release directories
- Maintains
roles/<id>/latestsymlink (when version ≠latest) - Plays nicely with
web-svc-cdnwithout circular inclusion