feat: initial commit
This commit is contained in:
parent
36ca871e90
commit
3063fd9b39
15 changed files with 242 additions and 93 deletions
35
tasks/config.yaml
Normal file
35
tasks/config.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
|
||||
# configure zot
|
||||
- name: "configure zot"
|
||||
block:
|
||||
|
||||
# create config file
|
||||
- name: "create config file"
|
||||
ansible.builtin.template:
|
||||
src: "zot/config.json.j2"
|
||||
dest: "/etc/zot/config.json"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
|
||||
# configure service for debian
|
||||
- name: "configure service for debian"
|
||||
when: "ansible_os_family == 'Debian'"
|
||||
block:
|
||||
|
||||
# create systemd service
|
||||
- name: "create systemd service"
|
||||
ansible.builtin.template:
|
||||
src: "zot/zot.service.j2"
|
||||
dest: "/etc/systemd/system/zot.service"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
|
||||
# enable and start service
|
||||
- name: "enable and start zot service"
|
||||
ansible.builtin.systemd:
|
||||
name: "zot.service"
|
||||
enabled: true
|
||||
state: "started"
|
||||
Loading…
Add table
Add a link
Reference in a new issue