mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
change systemd file location
This commit is contained in:
parent
7e8b35642c
commit
12f3c96af0
1 changed files with 14 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
- name: "Setup systemd service"
|
||||
become: true
|
||||
when: ansible_os_family == "Debian"
|
||||
ansible.builtin.template:
|
||||
src: gitea.service.j2
|
||||
dest: /lib/systemd/system/gitea.service
|
||||
|
@ -11,6 +12,19 @@
|
|||
- "Reload systemd"
|
||||
- "Restart gitea"
|
||||
|
||||
- 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"
|
||||
|
||||
- name: "Reload systemd"
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
|
|
Loading…
Reference in a new issue