From fbefb3750dfb3d1aba5f0fa0784cdaa9e4c227de Mon Sep 17 00:00:00 2001 From: thienqb123456 Date: Mon, 23 Dec 2024 00:12:58 +0700 Subject: [PATCH] Thienvv - --- roles/deploy/tasks/setup.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/deploy/tasks/setup.yml b/roles/deploy/tasks/setup.yml index 25c7805..b395143 100644 --- a/roles/deploy/tasks/setup.yml +++ b/roles/deploy/tasks/setup.yml @@ -10,12 +10,19 @@ $site.PhysicalPath register: active_path +# Debug Debug active_path +- name: Debug active_path + debug: + var: active_path + + # Chuẩn hóa giá trị của active_path - name: Normalize active_path set_fact: - active_path: "{{ active_path.stdout | trim }}" + active_path: "{{ active_path.stdout | default('') | trim }}" -# Debug các biến quan trọng + +# Debug Debug active_path - name: Debug active_path debug: var: active_path