检测 harbor 端口能否连接 (#1211)

v3.3
WeiLai 2022-12-19 17:44:13 +08:00 committed by gjmzj
parent 953167b189
commit 8ca72c90e3
1 changed files with 7 additions and 0 deletions

View File

@ -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