mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactor systemctl services and categories due to alarm bugs
This commit restructures systemctl service definitions and category mappings. Motivation: Alarm-related bugs revealed inconsistencies in service and role handling. Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
This commit is contained in:
20
roles/sys-ctl-hlth-webserver/README.md
Normal file
20
roles/sys-ctl-hlth-webserver/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# sys-ctl-hlth-webserver
|
||||
|
||||
## Description
|
||||
Verifies that each of your Nginx‐served domains returns an expected HTTP status (200, 301, etc.) and alerts on deviations.
|
||||
|
||||
## Features
|
||||
- Scans your `nginx` server block `.conf` files for domains.
|
||||
- HEAD-requests each domain and compares against per-domain expected codes.
|
||||
- Reports any mismatches via `sys-ctl-alm-compose`.
|
||||
- Scheduled via a systemd timer for periodic health sweeps.
|
||||
|
||||
## Usage
|
||||
Include this role, install `python-requests`, and define `on_calendar_health_nginx`.
|
||||
|
||||
## Further Resources
|
||||
- For more details on nginx configurations, visit [nginx documentation](https://nginx.org/en/docs/).
|
||||
- Learn more about Ansible's `uri_module` [here](https://docs.ansible.com/ansible/latest/modules/uri_module.html).
|
||||
|
||||
## Contributions
|
||||
This role was created with the assistance of ChatGPT. The conversation can be found [here](https://chat.openai.com/share/4033be29-12a6-40a3-bf3c-fc5d57dba8cb) and [here](https://chat.openai.com/share/7f3766d1-9db7-4976-8fe9-68d1142c0a78).
|
Reference in New Issue
Block a user