1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00
ansible_role_gitea/tasks/install_systemd.yml

32 lines
665 B
YAML
Raw Normal View History

---
2017-01-10 22:09:34 +01:00
- name: "Setup systemd service"
become: true
2023-05-06 17:38:08 +02:00
when: ansible_os_family == "Debian"
2021-03-22 21:28:51 +01:00
ansible.builtin.template:
2017-01-10 22:09:34 +01:00
src: gitea.service.j2
dest: /lib/systemd/system/gitea.service
owner: root
group: root
mode: 0644
notify:
- "Reload systemd"
- "Restart gitea"
2020-09-07 22:02:04 +02:00
2023-05-06 17:38:08 +02:00
- name: "Setup systemd service"
become: true
when: ansible_os_family == "Suse"
ansible.builtin.template:
src: gitea.service.j2
dest: /etc/systemd/system/gitea.service
owner: root
group: root
mode: 0644
notify:
- "Reload systemd"
- "Restart gitea"
2020-09-07 22:02:04 +02:00
- name: "Reload systemd"
become: true
2021-03-22 21:28:51 +01:00
ansible.builtin.systemd:
2020-09-07 22:02:04 +02:00
daemon_reload: true