From c5b5c7deb2efb4b3b71dcac75ed7004c974f6948 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 22 Feb 2023 15:52:45 +0100 Subject: [PATCH] Upgrade version --- playbook.yml | 2 +- roles/registry/tasks/main.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/playbook.yml b/playbook.yml index 22825d4..1ba31b3 100644 --- a/playbook.yml +++ b/playbook.yml @@ -4,7 +4,7 @@ gather_facts: false vars: harbor: - version: v2.6.0 + version: v2.7.1 roles: - dockerhost - registry diff --git a/roles/registry/tasks/main.yml b/roles/registry/tasks/main.yml index d77f339..e606f9f 100644 --- a/roles/registry/tasks/main.yml +++ b/roles/registry/tasks/main.yml @@ -3,11 +3,13 @@ url: https://github.com/goharbor/harbor/releases/download/{{ harbor.version }}/harbor-online-installer-{{ harbor.version }}.tgz dest: /tmp/harbor-installer.tgz mode: '0777' + - name: Extract installer unarchive: src: /tmp/harbor-installer.tgz dest: /opt remote_src: yes + - name: Copy Harbor configuration file and public/private keys copy: src: "{{ item.src }}" @@ -23,8 +25,10 @@ - src: /certificates/*.bessems.eu/privatekey.key dest: /opt/harbor backup: no + - name: Install Harbor command: /opt/harbor/install.sh --with-trivy + - name: Delete temporary files file: path: /tmp/harbor-installer.tgz