This commit is contained in:
parent
2ee5dd308d
commit
c5b5c7deb2
@ -4,7 +4,7 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
vars:
|
||||||
harbor:
|
harbor:
|
||||||
version: v2.6.0
|
version: v2.7.1
|
||||||
roles:
|
roles:
|
||||||
- dockerhost
|
- dockerhost
|
||||||
- registry
|
- registry
|
||||||
|
@ -3,11 +3,13 @@
|
|||||||
url: https://github.com/goharbor/harbor/releases/download/{{ harbor.version }}/harbor-online-installer-{{ harbor.version }}.tgz
|
url: https://github.com/goharbor/harbor/releases/download/{{ harbor.version }}/harbor-online-installer-{{ harbor.version }}.tgz
|
||||||
dest: /tmp/harbor-installer.tgz
|
dest: /tmp/harbor-installer.tgz
|
||||||
mode: '0777'
|
mode: '0777'
|
||||||
|
|
||||||
- name: Extract installer
|
- name: Extract installer
|
||||||
unarchive:
|
unarchive:
|
||||||
src: /tmp/harbor-installer.tgz
|
src: /tmp/harbor-installer.tgz
|
||||||
dest: /opt
|
dest: /opt
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
- name: Copy Harbor configuration file and public/private keys
|
- name: Copy Harbor configuration file and public/private keys
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
@ -23,8 +25,10 @@
|
|||||||
- src: /certificates/*.bessems.eu/privatekey.key
|
- src: /certificates/*.bessems.eu/privatekey.key
|
||||||
dest: /opt/harbor
|
dest: /opt/harbor
|
||||||
backup: no
|
backup: no
|
||||||
|
|
||||||
- name: Install Harbor
|
- name: Install Harbor
|
||||||
command: /opt/harbor/install.sh --with-trivy
|
command: /opt/harbor/install.sh --with-trivy
|
||||||
|
|
||||||
- name: Delete temporary files
|
- name: Delete temporary files
|
||||||
file:
|
file:
|
||||||
path: /tmp/harbor-installer.tgz
|
path: /tmp/harbor-installer.tgz
|
||||||
|
Loading…
Reference in New Issue
Block a user