Cosmostat Init Commit

This commit is contained in:
2026-03-09 16:32:43 -07:00
commit 298d7432a7
23 changed files with 1707 additions and 0 deletions

23
handlers/main.yaml Normal file
View File

@ -0,0 +1,23 @@
---
# daemon reload
- name: "deamon reload for {{ service_user }}"
shell: "systemctl --user -M {{ service_user }}@ deamon-reload"
listen: user daemon reload
# cosmostat api handlers
- name: Restart cosmostat api
shell: "systemctl --user -M {{ service_user }}@ restart {{ api_service_name }}"
listen: restart api
- name: Stop cosmostat api
shell: "systemctl --user -M {{ service_user }}@ stop {{ api_service_name }}"
listen: stop api
- name: Start cosmostat api
shell: "systemctl --user -M {{ service_user }}@ start {{ api_service_name }}"
listen: start api
...