main.ymlΒΆ

---
# CDN structure for the shared web-svc-cdn role (resolved once)
_cdn_shared: "{{ lookup('cdn', 'web-svc-cdn') }}"

CDN_GLOBAL_DIRS:
  - "{{ _cdn_shared.shared.root }}"
  - "{{ _cdn_shared.shared.css }}"
  - "{{ _cdn_shared.shared.js }}"
  - "{{ _cdn_shared.shared.img }}"
  - "{{ _cdn_shared.shared.fonts }}"
  - "{{ _cdn_shared.vendor }}"
  - "{{ _cdn_shared.root }}/roles"

# Role-specific CDN dirs for the current application
CDN_ROLE_DIRS: "{{ lookup('cdn', application_id).role | cdn_dirs }}"