mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Optimized performance by moving multiple similar when includes to own tasks file
This commit is contained in:
		| @@ -14,7 +14,10 @@ | ||||
|     name: web-svc-cdn | ||||
|     public: false | ||||
|   # ATM just the Logout is using the CDN. | ||||
|   when: inj_enabled.logout and application_id != 'web-svc-cdn' | ||||
|   when:  | ||||
|     - inj_enabled.logout | ||||
|     - application_id != 'web-svc-cdn' | ||||
|     - run_once_web_svc_cdn is not defined | ||||
|  | ||||
| - name: Overwritte CDN handlers with neutral handlers | ||||
|   ansible.builtin.include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml" | ||||
| @@ -26,7 +29,6 @@ | ||||
|   vars: | ||||
|     handler_role_name: "{{ item }}" | ||||
|  | ||||
|  | ||||
| - name: Set inj_enabled dictionary | ||||
|   set_fact: | ||||
|     inj_enabled: | ||||
| @@ -39,7 +41,9 @@ | ||||
| - name: "Activate Global CSS for {{domain}}" | ||||
|   include_role: | ||||
|     name: srv-web-7-7-inj-css | ||||
|   when: inj_enabled.css | ||||
|   when:  | ||||
|     - inj_enabled.css | ||||
|     - run_once_srv_web_7_7_inj_css is not defined | ||||
|  | ||||
| - name: "Activate Global Matomo Tracking for {{domain}}" | ||||
|   include_role: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user