diff --git a/inventory/uat/hosts.ini b/inventory/uat/hosts.ini index 3dfac5c..ebc855e 100644 --- a/inventory/uat/hosts.ini +++ b/inventory/uat/hosts.ini @@ -5,7 +5,7 @@ ktdt-portal-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible hnt-portal-backend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore [ktdt_portal_frontend] -xktdt-portal-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore +ktdt-portal-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore [hnt_portal_frontend] hnt-portal-frontend ansible_host=123.30.172.34 ansible_user=jenkins_cicd ansible_password=Thienthien123@ ansible_connection=winrm ansible_port=5985 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore diff --git a/roles/deploy-fe-portal/tasks/main.yml b/roles/deploy-fe-portal/tasks/main.yml index 32b626c..b024209 100644 --- a/roles/deploy-fe-portal/tasks/main.yml +++ b/roles/deploy-fe-portal/tasks/main.yml @@ -1,8 +1,3 @@ -- name: verify_host.yml - import_role: - name: utils - tasks_from: verify_host.yml - - name: get_site_current_active_path.yml import_role: name: iis_utils diff --git a/roles/utils/verify_host.yml b/roles/utils/verify_host.yml deleted file mode 100644 index 9bd17c9..0000000 --- a/roles/utils/verify_host.yml +++ /dev/null @@ -1,8 +0,0 @@ -- name: Verify hosts matched - hosts: all - gather_facts: no - tasks: - - name: Fail if no hosts are available - ansible.builtin.fail: - msg: "Không có hosts nào khớp!" - when: ansible_play_hosts | length == 0 \ No newline at end of file