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 #!/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:

View File

@ -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"