27 lines
939 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
2022-01-04 13:00:10 +01:00
2024-09-23 23:00:09 +02:00
- name: Remove Zabbix Agent2 plugins repo
apt_repository:
# Zabbix plugin repo doesn't have bookworm yet, so use bullseye for now in this case
repo: deb http://repo.zabbix.com/zabbix-agent2-plugins/1/{{ ansible_distribution | lower }} {{ (ansible_distribution_major_version is version('12', '>=')) | ternary('bullseye', ansible_distribution_release) }} main
filename: zabbix
state: absent
tags: repo,zabbix
2021-12-01 19:13:34 +01:00
- name: Add Zabbix repo key
apt_key:
2024-09-23 23:00:09 +02:00
url: "{{ item }}"
2021-12-01 19:13:34 +01:00
environment:
https_proxy: "{{ system_proxy | default('') }}"
2024-09-23 23:00:09 +02:00
loop:
- https://repo.zabbix.com/zabbix-official-repo-apr2024.gpg
- https://repo.zabbix.com/zabbix-official-repo.key
2022-01-26 16:00:08 +01:00
tags: repo,zabbix
2021-12-01 19:13:34 +01:00
- name: Add Zabbix repo
apt_repository:
2024-09-23 23:00:09 +02:00
repo: deb https://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main
2021-12-01 19:13:34 +01:00
filename: zabbix
2022-01-26 16:00:08 +01:00
tags: repo,zabbix
2022-11-22 11:00:11 +01:00