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

pull/1215/head
WeiLai 2022-12-19 17:44:13 +08:00 committed by GitHub
parent 42949cbbff
commit f892989228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -90,3 +90,10 @@
export PATH={{ bin_dir }}:$PATH && \ export PATH={{ bin_dir }}:$PATH && \
./install.sh {{ HARBOR_INST_OPS }} >> /tmp/harbor-`date +'%Y%m%d%H%M%S'`.log 2>&1" ./install.sh {{ HARBOR_INST_OPS }} >> /tmp/harbor-`date +'%Y%m%d%H%M%S'`.log 2>&1"
when: '"registry" not in result.stdout' when: '"registry" not in result.stdout'
- name: 检测 harbor 端口是否正常
wait_for:
host: "{{ inventory_hostname }}"
port: "{{ HARBOR_TLS_PORT }}"
timeout: 60
run_once: true