From 8ca72c90e3448cf8d7bd56316ffabda3da55b31f Mon Sep 17 00:00:00 2001 From: WeiLai Date: Mon, 19 Dec 2022 17:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=20harbor=20=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E8=83=BD=E5=90=A6=E8=BF=9E=E6=8E=A5=20(#1211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/harbor/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/harbor/tasks/main.yml b/roles/harbor/tasks/main.yml index e1dfd37..d6802e0 100644 --- a/roles/harbor/tasks/main.yml +++ b/roles/harbor/tasks/main.yml @@ -90,3 +90,10 @@ export PATH={{ bin_dir }}:$PATH && \ ./install.sh {{ HARBOR_INST_OPS }} >> /tmp/harbor-`date +'%Y%m%d%H%M%S'`.log 2>&1" when: '"registry" not in result.stdout' + +- name: 检测 harbor 端口是否正常 + wait_for: + host: "{{ inventory_hostname }}" + port: "{{ HARBOR_TLS_PORT }}" + timeout: 60 + run_once: true