mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-30 06:47:56 +01:00 
			
		
		
		
	Replace most import_tasks calls with include_tasks for improved performance
This commit is contained in:
		| @@ -1,25 +1,21 @@ | ||||
| --- | ||||
|  | ||||
| - when: matrix_etherpad_enabled | bool and matrix_etherpad_mode == 'dimension' | ||||
|   ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml" | ||||
| - block: | ||||
|     - when: matrix_etherpad_enabled | bool and matrix_etherpad_mode == 'dimension' | ||||
|       ansible.builtin.include_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml" | ||||
|   tags: | ||||
|     - setup-all | ||||
|     - setup-nginx-proxy | ||||
|  | ||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml" | ||||
|   when: run_setup | bool and matrix_etherpad_enabled | bool | ||||
|   tags: | ||||
|     - setup-all | ||||
|     - setup-etherpad | ||||
| - block: | ||||
|     - when: matrix_etherpad_enabled | bool | ||||
|       ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" | ||||
|  | ||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml" | ||||
|   when: run_setup | bool and matrix_etherpad_enabled | bool | ||||
|   tags: | ||||
|     - setup-all | ||||
|     - setup-etherpad | ||||
|     - when: matrix_etherpad_enabled | bool | ||||
|       ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml" | ||||
|  | ||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" | ||||
|   when: run_setup | bool and not matrix_etherpad_enabled | bool | ||||
|     - when: not matrix_etherpad_enabled | bool | ||||
|       ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" | ||||
|   tags: | ||||
|     - setup-all | ||||
|     - setup-etherpad | ||||
|   | ||||
		Reference in New Issue
	
	Block a user