feat: initial commit
This commit is contained in:
parent
36ca871e90
commit
3063fd9b39
15 changed files with 242 additions and 93 deletions
28
tasks/install.yaml
Normal file
28
tasks/install.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
|
||||
# install zot
|
||||
- name: "install zot"
|
||||
when: "zot_major_version not in zot_current_version.stdout"
|
||||
block:
|
||||
|
||||
# install zot
|
||||
- name: "install zot"
|
||||
ansible.builtin.unarchive:
|
||||
src: "https://github.com/project-zot/zot/releases/download/v{{ zot_version }}/zot-linux-amd64"
|
||||
dest: "/usr/bin/zot"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0755"
|
||||
remote_src: true
|
||||
|
||||
# create zot dirs
|
||||
- name: "create zot dirs"
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: "directory"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0755"
|
||||
loop:
|
||||
- "/etc/zot"
|
||||
- "/var/lib/zot"
|
||||
Loading…
Add table
Add a link
Reference in a new issue