40 lines
1.2 KiB
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
- name: Configure Zabbix repo
yum_repository:
name: zabbix
description: Zabbix Repository
2025-01-03 11:00:10 +01:00
baseurl: https://repo.zabbix.com/zabbix/{{ zabbix_major_version }}{% if zabbix_major_version is version('7.2', '>=') %}/stable{% endif %}/rhel/$releasever/$basearch/
2021-12-01 19:13:34 +01:00
gpgcheck: True
2023-06-16 18:00:09 +02:00
gpgkey: "{{ zabbix_repo_key }}"
2021-12-01 19:13:34 +01:00
priority: 50
includepkgs:
- zabbix*
2022-01-26 16:00:08 +01:00
tags: repo,zabbix
2021-12-01 19:13:34 +01:00
2025-01-03 11:00:10 +01:00
- name: Configure Zabbix repo
2022-11-22 11:00:11 +01:00
yum_repository:
2025-01-03 11:00:10 +01:00
name: zabbix-release
description: Zabbix Release Repository
baseurl: https://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/release/rhel/$releasever/noarch/
2022-11-22 11:00:11 +01:00
gpgcheck: True
2025-01-03 11:00:10 +01:00
gpgkey: "{{ zabbix_repo_key }}"
2022-11-22 11:00:11 +01:00
priority: 50
includepkgs:
- zabbix*
2025-01-03 11:00:10 +01:00
state: "{{ zabbix_major_version is version('7.2', '>=') | ternary('present', 'absent') }}"
2022-11-22 11:00:11 +01:00
tags: repo,zabbix
2025-01-03 11:00:10 +01:00
- name: Configure Zabbix Agent2 plugins repo
2021-12-01 19:13:34 +01:00
yum_repository:
2025-01-03 11:00:10 +01:00
name: zabbix-agent2-plugins
state: absent
description: Zabbix Agent2 plugins Repository
baseurl: https://repo.zabbix.com/zabbix-agent2-plugins/1/rhel/$releasever/$basearch/
2021-12-01 19:13:34 +01:00
gpgcheck: True
priority: 50
includepkgs:
- zabbix*
2022-01-26 16:00:08 +01:00
tags: repo,zabbix
2022-11-22 11:00:11 +01:00