Replace most import_tasks calls with include_tasks for improved performance
This commit is contained in:
@ -1,35 +1,33 @@
|
||||
---
|
||||
|
||||
- when: matrix_registration_enabled | bool
|
||||
ansible.builtin.import_tasks: "{{ role_path }}/tasks/inject_into_nginx_proxy.yml"
|
||||
- block:
|
||||
- when: matrix_registration_enabled | bool
|
||||
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_registration_enabled | bool"
|
||||
- block:
|
||||
- when: matrix_registration_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||
|
||||
- when: matrix_registration_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||
|
||||
- when: not matrix_registration_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||
tags:
|
||||
- setup-all
|
||||
- setup-matrix-registration
|
||||
|
||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||
when: "run_setup | bool and matrix_registration_enabled | bool"
|
||||
tags:
|
||||
- setup-all
|
||||
- setup-matrix-registration
|
||||
|
||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
|
||||
when: "run_setup | bool and not matrix_registration_enabled | bool"
|
||||
tags:
|
||||
- setup-all
|
||||
- setup-matrix-registration
|
||||
|
||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/generate_token.yml"
|
||||
when: "run_setup | bool and matrix_registration_enabled | bool"
|
||||
- block:
|
||||
- when: matrix_registration_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/generate_token.yml"
|
||||
tags:
|
||||
- generate-matrix-registration-token
|
||||
|
||||
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/list_tokens.yml"
|
||||
when: "run_setup | bool and matrix_registration_enabled | bool"
|
||||
- block:
|
||||
- when: matrix_registration_enabled | bool
|
||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/list_tokens.yml"
|
||||
tags:
|
||||
- list-matrix-registration-tokens
|
||||
|
Reference in New Issue
Block a user