ansible-role-gitea/handlers/main.yml

21 lines
501 B
YAML
Raw Normal View History

2020-09-15 16:43:53 +02:00
---
# 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