ansible-role-gitea/handlers/main.yml
Denis Knauf 8845621862 init
2020-09-15 16:43:53 +02:00

21 lines
501 B
YAML

---
# vim: set expandtab tabstop=2 shiftwidth=2:
- name: restart gitea
shell: |
service=gitea.service
case `systemctl show $service | sed -ne 's/^ActiveState=//p'` in
active) systemctl restart $service ;;
failed) systemctl restart $service ;;
*) systemctl start $service ;;
esac
- name: restart postgresql
service:
state: restarted
name: postgresql
daemon-reload: yes
- name: restart nginx
service:
state: restarted
name: nginx
daemon-reload: yes