diff --git a/roles/deploy/tasks/setup.yml b/roles/deploy/tasks/setup.yml index afe9804..01e7d93 100644 --- a/roles/deploy/tasks/setup.yml +++ b/roles/deploy/tasks/setup.yml @@ -28,10 +28,10 @@ - debug: var: active_path -- name: Handle error if active_path is null - fail: - msg: "The IIS site active path could not be determined." - when: active_path.stdout is null +- name: Handle error if active_path is null + fail: + msg: "The IIS site active path could not be determined." + when: active_path.stdout is not defined or active_path.stdout == '' # Chuẩn hóa giá trị của active_path