From ff32e21b51cd950b308a225d8bacb3480ad2637b Mon Sep 17 00:00:00 2001 From: thienqb123456 Date: Sat, 15 Mar 2025 16:07:52 +0700 Subject: [PATCH] =?UTF-8?q?ch=E1=BB=8Bu,=20ch=C6=B0a=20x=E1=BB=AD=20l?= =?UTF-8?q?=C3=AD=20=C4=91c=20v=E1=BA=A5n=20=C4=91=E1=BB=81=20skipping:=20?= =?UTF-8?q?no=20hosts=20matched=20,=20m=C3=A0=20ko=20b=C3=A1o=20l=E1=BB=97?= =?UTF-8?q?i?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory/uat/hosts.ini | 2 +- roles/deploy-fe-portal/tasks/main.yml | 5 ----- roles/utils/verify_host.yml | 8 -------- 3 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 roles/utils/verify_host.yml 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