mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-24 11:06:24 +02:00
21 lines
634 B
YAML
21 lines
634 B
YAML
- name: "Load CDN for '{{ domain }}'"
|
|
include_role:
|
|
name: web-svc-cdn
|
|
public: false
|
|
when:
|
|
- application_id != 'web-svc-cdn'
|
|
- run_once_web_svc_cdn is not defined
|
|
|
|
# ------------------------------------------------------------------
|
|
# Only-once creations (shared root and vendor)
|
|
# ------------------------------------------------------------------
|
|
- name: Ensure shared root and vendor exist (run once)
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ NGINX.USER }}"
|
|
group: "{{ NGINX.USER }}"
|
|
mode: "0755"
|
|
loop: "{{ CDN_DIRS_GLOBAL }}"
|
|
|
|
- include_tasks: utils/run_once.yml |