Add registry role
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-01-12 21:25:11 +01:00
parent 9f4581e4b0
commit 4cba7722cd
4 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
---
- name: Create registry.service
ansible.builtin.template:
src: registry.service.j2
dest: /etc/systemd/system/registry.service
notify:
- reload systemd
- restart registry
- name: Flush handlers
meta: flush_handlers
- name: Ensure service is started
ansible.builtin.systemd:
state: started
name: registry
- name: Ensure service is enabled
ansible.builtin.systemd:
enabled: yes
name: registry