ansible-role-gitea/tasks/install_systemd.yml

18 lines
402 B
YAML
Raw Normal View History

---
2017-01-10 15:09:34 -06:00
- name: "Setup systemd service"
template:
src: gitea.service.j2
dest: /lib/systemd/system/gitea.service
owner: root
group: root
mode: 0644
notify:
- "Reload systemd"
- "Restart gitea"
2020-09-07 15:02:04 -05:00
2021-01-16 15:36:41 -06: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.
2020-09-07 15:02:04 -05:00
- name: "Reload systemd"
systemd:
daemon_reload: true