- Ansible: basic, with-exporter, with-notifications, enterprise playbooks - Kubernetes: CronJob, ConfigMap, ServiceMonitor, PVC manifests - Prometheus: alerting rules (RPO/RTO/failure) and scrape configs - Terraform: AWS S3 bucket with lifecycle policies - Scripts: GFS backup rotation and health check (Nagios compatible) All playbooks support: - Scheduled backups with systemd timers - GFS retention policies - Prometheus metrics exporter - SMTP/Slack/webhook notifications - Encrypted backups with cloud upload
13 lines
252 B
YAML
13 lines
252 B
YAML
---
|
|
# dbbackup Ansible Role - Handlers
|
|
|
|
- name: reload systemd
|
|
systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: restart dbbackup
|
|
systemd:
|
|
name: "dbbackup-{{ dbbackup_backup_type }}.service"
|
|
state: restarted
|
|
when: ansible_service_mgr == 'systemd'
|