2021-01-21 09:07:19 +01:00
|
|
|
---
|
|
|
|
- name: "Setup systemd service"
|
2022-01-10 09:01:52 +01:00
|
|
|
ansible.builtin.template:
|
2021-01-21 09:07:19 +01:00
|
|
|
src: gitea.service.j2
|
|
|
|
dest: /lib/systemd/system/gitea.service
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify:
|
|
|
|
- "Reload systemd"
|
|
|
|
- "Restart gitea"
|
|
|
|
|
2022-01-10 09:01:52 +01:00
|
|
|
# systemd to be reloaded the first time because
|
|
|
|
# it is the only way Systemd is going to be aware of the new unit file.
|
2021-01-21 09:07:19 +01:00
|
|
|
- name: "Reload systemd"
|
2022-01-10 09:01:52 +01:00
|
|
|
ansible.builtin.systemd:
|
2021-01-21 09:07:19 +01:00
|
|
|
daemon_reload: true
|