Ansible role that prepares the host for Zabbix software
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Cornet 58febf68b6
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
docs: improve readme
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 17:28:33 +02:00
.woodpecker chore(package): update cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2 docker tag to v0.23.3 2026-09-20 05:52:00 +00:00
defaults feat: upgrade zabbix to version 7.4 2025-07-17 11:18:17 +02:00
meta feat: initial commit 2025-06-06 17:12:03 +02:00
roles fix: update requirements to forgejo repo locations 2026-05-15 13:51:07 +02:00
tasks fix: line-lenght issue 2026-05-19 09:22:11 +02:00
vars chore: fix ordering 2026-03-20 07:55:28 +01:00
.ansible-lint fix: exclude only sops yml files from lint 2026-07-14 16:24:03 +02:00
.editorconfig chore: add .editorconfig and .gitattributes 2026-05-27 14:24:09 +02:00
.gitattributes chore: add .editorconfig and .gitattributes 2026-05-27 14:24:09 +02:00
.gitignore feat: initial commit 2025-06-06 17:12:03 +02:00
.markdownlint-cli2.jsonc style: ignore line length for markdown tables 2026-05-15 13:44:05 +02:00
.sops.yaml fix: correct sops regex to ya?ml 2026-07-14 16:02:10 +02:00
.yamllint chore: exclude .yml files from lint configs 2026-07-14 16:17:46 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:06:22 +01:00
ansible.cfg chore: sync linting and config files from common 2026-07-14 11:33:16 +02:00
playbook.yaml chore(playbook): run galaxy install only on first host 2026-08-13 08:49:04 +02:00
readme.md docs: improve readme 2026-10-05 17:28:33 +02:00
renovate.json fix(ci): use central config 2025-06-17 17:58:27 +02:00

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_agent
  • zabbix_proxy
  • zabbix_server
  • zabbix_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 of apt policy).
  • When it is not, it removes the old zabbix-release package and installs the zabbix-release package for the configured version straight from repo.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.