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