feat: initial commit

This commit is contained in:
Simon Cornet 2026-05-08 08:34:04 +02:00
commit 3063fd9b39
15 changed files with 242 additions and 93 deletions

28
tasks/install.yaml Normal file
View 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"