From 465f7cd7a7f9739bbc7b065d4649c19562f96adc Mon Sep 17 00:00:00 2001 From: zuoxuesong-worker Date: Thu, 23 Oct 2025 15:25:28 +0800 Subject: [PATCH] feat: copy self-signed ca to harbor ssl (#2820) Signed-off-by: xuesongzuo@yunify.com --- builtin/core/roles/image-registry/harbor/tasks/main.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/builtin/core/roles/image-registry/harbor/tasks/main.yaml b/builtin/core/roles/image-registry/harbor/tasks/main.yaml index 8575baf9..4ed47b2e 100644 --- a/builtin/core/roles/image-registry/harbor/tasks/main.yaml +++ b/builtin/core/roles/image-registry/harbor/tasks/main.yaml @@ -24,6 +24,13 @@ dest: >- /opt/harbor/{{ .image_registry.harbor_version }}/ssl/server.key +- name: Harbor | Synchronize self signed ca cert to remote host + copy: + src: >- + {{ .binary_dir }}/pki/ca.crt + dest: >- + /opt/harbor/{{ .image_registry.harbor_version }}/ssl/ca.crt + - name: Harbor | Generate Harbor configuration file template: src: harbor.yml