mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-06-29 20:57:51 +02:00
Replace most import_tasks calls with include_tasks for improved performance
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
---
|
||||
|
||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||
when: "run_setup | bool and matrix_grafana_enabled | bool"
|
||||
tags:
|
||||
- setup-all
|
||||
- setup-grafana
|
||||
- block:
|
||||
- when: matrix_grafana_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||
|
||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup.yml"
|
||||
- when: matrix_grafana_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||
|
||||
- when: not matrix_grafana_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||
tags:
|
||||
- setup-all
|
||||
- setup-grafana
|
||||
|
Reference in New Issue
Block a user