ansible-roles/roles/repo_zabbix/tasks/RedHat.yml

41 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
2024-04-05 10:01:02 +02:00
baseurl: https://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/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
2022-11-22 11:00:11 +01:00
- name: Configure Zabbix Agent2 plugins repo
yum_repository:
name: zabbix-agent2-plugins
description: Zabbix Agent2 plugins Repository
2024-04-05 10:01:02 +02:00
baseurl: https://repo.zabbix.com/zabbix-agent2-plugins/1/rhel/$releasever/$basearch/
2022-11-22 11:00:11 +01:00
gpgcheck: True
2023-06-29 10:00:34 +02:00
gpgkey: "{{ zabbix_plugin_key }}"
2022-11-22 11:00:11 +01:00
priority: 50
includepkgs:
- zabbix*
tags: repo,zabbix
2021-12-01 19:13:34 +01:00
- name: Configure Zabbix frontend repo
yum_repository:
name: zabbix-frontend
description: Zabbix web frontend repository
file: zabbix
2024-04-05 10:01:02 +02:00
baseurl: https://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/rhel/$releasever/$basearch/frontend
2021-12-01 19:13:34 +01:00
gpgcheck: True
2023-06-29 10:00:34 +02:00
gpgkey: "{{ zabbix_repo_key }}"
2021-12-01 19:13:34 +01:00
priority: 50
includepkgs:
- zabbix*
2021-12-07 20:00:26 +01:00
state: "{{ (zabbix_major_version is version('5.0', '>=') and zabbix_major_version is version('5.4', '<') and ansible_distribution_major_version is version('8', '<')) | ternary('present', 'absent') }}"
2022-01-26 16:00:08 +01:00
tags: repo,zabbix
2022-11-22 11:00:11 +01:00