2022-01-12 20:40:14 +00:00
|
|
|
---
|
|
|
|
- name: Create gitea.service
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: gitea.service.j2
|
|
|
|
dest: /etc/systemd/system/gitea.service
|
|
|
|
notify:
|
2022-01-12 20:43:19 +00:00
|
|
|
- Reload systemd
|
|
|
|
- Restart gitea
|
2022-01-12 20:40:14 +00:00
|
|
|
|
|
|
|
- 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
|