From fc6357a089f57a16f5117f6940a25fad2ca0f9ec Mon Sep 17 00:00:00 2001 From: Backslash Date: Wed, 25 Sep 2024 18:05:34 +1000 Subject: [PATCH] Update main.yml --- .../custom/matrix-element-call/tasks/main.yml | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/roles/custom/matrix-element-call/tasks/main.yml b/roles/custom/matrix-element-call/tasks/main.yml index ae0f7ce68..5727957ff 100644 --- a/roles/custom/matrix-element-call/tasks/main.yml +++ b/roles/custom/matrix-element-call/tasks/main.yml @@ -1,14 +1,20 @@ --- -# roles/custom/matrix-element-call/tasks/main.yml -- name: Ensure Element Call dependencies are valid and present - when: matrix_element_call_enabled | bool - ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" +- tags: + - setup-all + - setup-element-call + - install-all + - install-element-call + block: + - when: matrix_element_call_enabled | bool + ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml" -- name: Install Element Call and its related services - when: matrix_element_call_enabled | bool - ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" + - when: matrix_element_call_enabled | bool + ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml" -- name: Uninstall Element Call and clean up resources - when: not matrix_element_call_enabled | bool - ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml" \ No newline at end of file +- tags: + - setup-all + - setup-element-call + block: + - when: not matrix_element_call_enabled | bool + ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"