chore: add AGENTS.md for opencode agents

This commit is contained in:
Simon Cornet 2026-02-16 09:57:16 +01:00
commit 4982cb385f

39
AGENTS.md Normal file
View file

@ -0,0 +1,39 @@
# Agents
This role installs and configures Zabbix Agent 2 for host monitoring.
## Role Analysis
- **Type**: Monitoring agent role
- **OS Support**: Debian 12, SLES 15, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS
- **Deployment Method**: Direct (package installation)
- **Scope**: Zabbix agent installation and configuration
## Key Variables
| Variable | Default | Description |
|----------|---------|-------------|
| `zabbix_agent_hostinterface` | `inventory_hostname` | Agent interface |
| `zabbix_agent_hostname` | `inventory_hostname` | Host name in Zabbix |
| `zabbix_agent_listen_port` | `10050` | Listen port |
| `zabbix_agent_psk_enable` | `true` | Enable PSK encryption |
| `zabbix_agent_psk_id` | (required if PSK enabled) | PSK identity |
| `zabbix_agent_psk` | (required if PSK enabled) | PSK secret |
| `zabbix_proxy_address` | `shared.proxy.monitor.itcreation.tools` | Zabbix proxy |
| `zabbix_proxy_port` | `10051` | Proxy port |
| `zabbix_user_sudo` | `true` | Enable sudo for agent |
## Tags
| Tag | Purpose |
|-----|---------|
| `zabbix_agent_config` | Manage agent configuration |
| `zabbix_agent_install` | Manage agent installation |
| `zabbix_agent_prereq` | Manage prerequisites |
## Testing
```bash
ansible-lint
molecule test
```