mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00: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 |