diff --git a/roles/deploy/tasks/setup.yml b/roles/deploy/tasks/setup.yml index 331acc4..afe9804 100644 --- a/roles/deploy/tasks/setup.yml +++ b/roles/deploy/tasks/setup.yml @@ -20,10 +20,10 @@ #Lấy đường dẫn vật lý của iis site - name: Get the physical path of the current IIS site - win_command: | + win_shell: | Import-Module WebAdministration $site = Get-Website -Name "{{ iis_site_name }}" - $site.PhysicalPath + $site.PhysicalPath register: active_path - debug: var: active_path