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

This commit is contained in:
2022-01-12 21:40:14 +01:00
parent 4cba7722cd
commit f13ae508f1
3 changed files with 58 additions and 0 deletions

View File

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