| 1 |
# community.zabbix.zabbix_server role |
| 2 |
|
| 3 |
 |
| 4 |
|
| 5 |
**Table of Contents** |
| 6 |
|
| 7 |
- [Overview](#overview) |
| 8 |
- [Requirements](#requirements) |
| 9 |
* [Operating systems](#operating-systems) |
| 10 |
* [Zabbix Versions](#zabbix-versions) |
| 11 |
- [Installation](#installation) |
| 12 |
- [Role Variables](#role-variables) |
| 13 |
- [Example Playbook](#example-playbook) |
| 14 |
- [License](#license) |
| 15 |
- [Author Information](#author-information) |
| 16 |
|
| 17 |
# Overview |
| 18 |
|
| 19 |
This is a Ansible role for installing the yum or apt repository for Zabbix. This will not install the Zabbix Server or any other component of Zabbix itself. |
| 20 |
|
| 21 |
# Requirements |
| 22 |
|
| 23 |
## Operating systems |
| 24 |
|
| 25 |
This role will work on the following operating systems: |
| 26 |
|
| 27 |
* Red Hat |
| 28 |
* Debian |
| 29 |
* Ubuntu |
| 30 |
|
| 31 |
So, you'll need one of those operating systems.. :-) |
| 32 |
Please send Pull Requests or suggestions when you want to use this role for other Operating systems. |
| 33 |
|
| 34 |
## Zabbix Versions |
| 35 |
|
| 36 |
See the following list of supported Operating systems with the Zabbix releases: |
| 37 |
|
| 38 |
| Zabbix | 7.4 | 7.2 | 7.0 | 6.0 | |
| 39 |
|---------------------|-----|-----|-----|-----| |
| 40 |
| Red Hat Fam 9 | V | V | V | V | |
| 41 |
| Red Hat Fam 8 | V | V | V | V | |
| 42 |
| Ubuntu 24.04 noble | V | V | V | V | |
| 43 |
| Ubuntu 22.04 jammy | V | V | V | V | |
| 44 |
| Debian 12 bookworm | V | V | V | V | |
| 45 |
| Debian 11 bullseye | V | V | V | V | |
| 46 |
| Suse Fam 15 | V | V | V | V | |
| 47 |
|
| 48 |
# Installation |
| 49 |
|
| 50 |
Installing this role is very simple: `ansible-galaxy install community.zabbix.zabbix_manage_repo` |
| 51 |
|
| 52 |
Please be aware that this role only installs the repo itself. It is generally used by the various other Zabbix roles (i.e. server or web) and not normally used by itself. |
| 53 |
|
| 54 |
# Role Variables |
| 55 |
|
| 56 |
* `zabbix_repo_apt_priority`: Default: `1001`. An integer value for the priority of the repo. |
| 57 |
* `zabbix_repo_deb_schema`: Default: `https`. Option to change the web schema for the deb repository(http/https) |
| 58 |
* `zabbix_repo_deb_component`: The repository component for Debian installs. Default `main`. |
| 59 |
* `zabbix_repo_deb_gpg_key_url`: The URL to download the Zabbix GPG key from. Default `http://repo.zabbix.com/zabbix-official-repo.key`. |
| 60 |
* `zabbix_repo_deb_include_deb_src`: True, if deb-src should be included in the zabbix.sources entry. Default `true`. |
| 61 |
* `zabbix_repo_deb_url`: The URL to the Zabbix repository. Default `http://repo.zabbix.com/zabbix/{{ zabbix_repo_version }}/{{ ansible_distribution.lower() }}` |
| 62 |
* `zabbix_http_proxy`: Optional: HTTP proxy information. |
| 63 |
* `zabbix_https_proxy`: Optional: HTTPS proxy information. |
| 64 |
* `zabbix_repo_gpg_key`: Optional: The keyring path. Default: `{{ debian_keyring_path }}zabbix-repo.asc` |
| 65 |
* `zabbix_repo_keyring_path`: Optional: The path to store keyrings in Debian distributions. Default: `/etc/apt/keyrings/` |
| 66 |
* `zabbix_repo_package`: The name of the package to lock the apt priority to. |
| 67 |
* `zabbix_repo_version`: Optional. The main version (i.e. major.minor) of Zabbix that will be installed on the host(s). Default: 6.4 |
| 68 |
* `zabbix_repo_yum`: A list with Yum repository configuration. |
| 69 |
* `zabbix_repo_yum_gpgcheck`: Default: `1`. Yum should check GPG keys. |
| 70 |
* `zabbix_repo_yum_gpg_key_url`: The URL to download the Zabbix GPG key from. Default: `http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX-08EFA7DD` |
| 71 |
* `zabbix_repo_yum_schema`: Default: `https`. Option to change the web schema for the yum repository(http/https) |
| 72 |
* `zabbix_repo_zypper`: A list with zypper repository configuration. |
| 73 |
* `zabbix_repo_zypper_auto_import_keys`: Optional. Zypper should import GPG keys automatically. Default: true |
| 74 |
* `zabbix_repo_zypper_disable_gpg_check`: Optional. Zypper shouldn't check GPG keys. Default: false |
| 75 |
* `zabbix_repo_zypper_schema`: Default: `https`. Option to change the web schema for the zypper repository(http/https) |
| 76 |
|
| 77 |
# Example Playbook |
| 78 |
|
| 79 |
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: |
| 80 |
|
| 81 |
```yaml |
| 82 |
- hosts: zabbix-server |
| 83 |
roles: |
| 84 |
- role: community.zabbix.zabbix_repo |
| 85 |
``` |
| 86 |
|
| 87 |
# License |
| 88 |
|
| 89 |
GNU General Public License v3.0 or later |
| 90 |
|
| 91 |
See LICENCE to see the full text. |
| 92 |
|
| 93 |
# Author Information |
| 94 |
|
| 95 |
Please send suggestion or pull requests to make this role better. Also let us know if you encounter any issues installing or using this role. |
| 96 |
|
| 97 |
Github: https://github.com/ansible-collections/community.zabbix |