talas-group/04_INFRA_DEPLOIEMENT/Ansible/roles/postgres/handlers/main.yml
senke 66471934af Initial commit: Talas Group project management & documentation
Knowledge base of ~80+ markdown files across 14 domains (00-13),
Logseq graph, hardware design files (KiCAD), infrastructure configs,
and talas-wiki static site.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 20:10:41 +02:00

23 lines
540 B
YAML

---
# file: roles/postgres/handlers/main.yml
- name: "reload postgres"
systemd:
name: "postgresql@{{ pg_version }}-{{ pg_cluster_name }}.service"
state: reloaded
when: ansible_service_mgr == "systemd"
- name: "restart postgres"
systemd:
name: "postgresql@{{ pg_version }}-{{ pg_cluster_name }}.service"
state: restarted
when: ansible_service_mgr == "systemd"
- name: restart zabbix_agent
systemd:
name: zabbix-agent
state: restarted
- name: "systemctl daemon-reload"
systemd:
daemon_reload: true