| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .woodpecker | ||
| defaults | ||
| meta | ||
| roles | ||
| tasks | ||
| vars | ||
| .ansible-lint | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .markdownlint-cli2.jsonc | ||
| .sops.yaml | ||
| .yamllint | ||
| AGENTS.md | ||
| ansible.cfg | ||
| playbook.yaml | ||
| readme.md | ||
| renovate.json | ||
Ansible Role: Zabbix Prerequisites
This role installs the official Zabbix package repository, so the other Zabbix roles can install their packages from it. It does not install any Zabbix component itself.
Requirements
| Operating System | Version |
|---|---|
| Debian | 12, 13 |
| Ubuntu | 22.04, 24.04 |
| SLES | 15 |
Alpine hosts are skipped: the role does nothing there.
Dependencies
None.
Consumers
The following roles expect this role to have run before them. Each of their playbooks runs it first.
zabbix_agentzabbix_proxyzabbix_serverzabbix_web
Variables
| Variable | Required | Default | Description |
|---|---|---|---|
| zabbix_major_version | No | "7.4" |
Zabbix major version of the repository to install |
The repository URLs per distribution are defined in vars/Debian.yaml and vars/Suse.yaml and are built from
zabbix_major_version.
Example
zabbix_major_version: "7.4"
What the role does
- Checks whether the configured major version is already present (Debian family: the first
zabbix/line ofapt policy). - When it is not, it removes the old
zabbix-releasepackage and installs thezabbix-releasepackage for the configured version straight fromrepo.zabbix.com. - Debian and Ubuntu: refreshes the apt cache afterwards.
- SLES: installs the release rpm and imports the GPG key of the "Zabbix Official Repository".
Usage
Run the role through Semaphore using playbook.yaml. The playbook first runs
ansible-galaxy install -f -r roles/requirements.yml on the controller to fetch the latest role, then executes it
on all hosts. Normally you do not run this role on its own: the playbooks of the other Zabbix roles include it.