21 lines
501 B
YAML
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
|