Replay changes
This commit is contained in:
31
roles/registry/tasks/main.yml
Normal file
31
roles/registry/tasks/main.yml
Normal file
@ -0,0 +1,31 @@
|
||||
- name: Download Harbor installer
|
||||
get_url:
|
||||
url: https://github.com/goharbor/harbor/releases/download/v2.2.0/harbor-online-installer-v2.2.0.tgz
|
||||
dest: /tmp/harbor-installer.tgz
|
||||
mode: '0777'
|
||||
- name: Extract installer
|
||||
unarchive:
|
||||
src: /tmp/harbor-installer.tgz
|
||||
dest: /tmp
|
||||
remote_src: yes
|
||||
- name: Copy Harbor configuration file and public/private keys
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
backup: "{{ item.backup }}"
|
||||
with_items:
|
||||
- src: harbor.yml
|
||||
dest: /tmp/harbor
|
||||
backup: yes
|
||||
- src: /certificates/*.bessems.eu/certificate.crt
|
||||
dest: /tmp/harbor
|
||||
backup: no
|
||||
- src: /certificates/*.bessems.eu/privatekey.key
|
||||
dest: /tmp/harbor
|
||||
backup: no
|
||||
- name: Install Harbor
|
||||
command: /tmp/harbor/install.sh --with-trivy
|
||||
- name: Delete temporary files
|
||||
file:
|
||||
path: /tmp/harbor-installer.tgz
|
||||
state: absent
|
Reference in New Issue
Block a user