Restart Gitea if service changes
This commit is contained in:
parent
70503185cd
commit
d4e4c53b00
@ -1,6 +1,10 @@
|
|||||||
#!/usr/bin/ansible-playbook
|
#!/usr/bin/ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
|
- name: restart gitea
|
||||||
|
service:
|
||||||
|
name: gitea.service
|
||||||
|
state: restarted
|
||||||
- name: gitea add default user
|
- name: gitea add default user
|
||||||
command:
|
command:
|
||||||
argv:
|
argv:
|
||||||
|
@ -99,6 +99,7 @@
|
|||||||
template:
|
template:
|
||||||
src: "gitea.service"
|
src: "gitea.service"
|
||||||
dest: "/etc/systemd/system/gitea.service"
|
dest: "/etc/systemd/system/gitea.service"
|
||||||
|
notify: restart gitea
|
||||||
- name: Start and enable service
|
- name: Start and enable service
|
||||||
service:
|
service:
|
||||||
name: "gitea.service"
|
name: "gitea.service"
|
||||||
|
Loading…
Reference in New Issue
Block a user