Restart Gitea if service changes

This commit is contained in:
Salt 2020-04-30 06:45:04 -05:00
parent 70503185cd
commit d4e4c53b00
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: restart gitea
service:
name: gitea.service
state: restarted
- name: gitea add default user
command:
argv:

View File

@ -99,6 +99,7 @@
template:
src: "gitea.service"
dest: "/etc/systemd/system/gitea.service"
notify: restart gitea
- name: Start and enable service
service:
name: "gitea.service"