mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2024-09-23 23:00
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
---
|
||||
|
||||
- name: Add Zabbix repo key
|
||||
apt_key:
|
||||
data: "{{ lookup('url', 'https://repo.zabbix.com/zabbix-official-repo.key', split_lines=False) }}"
|
||||
environment:
|
||||
https_proxy: "{{ system_proxy | default('') }}"
|
||||
tags: repo,zabbix
|
||||
|
||||
- name: Add Zabbix repo
|
||||
apt_repository:
|
||||
repo: deb http://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main
|
||||
filename: zabbix
|
||||
tags: repo,zabbix
|
||||
|
||||
- name: Add Zabbix Agent2 plugins repo
|
||||
- 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
|
||||
|
||||
- name: Add Zabbix repo key
|
||||
apt_key:
|
||||
url: "{{ item }}"
|
||||
environment:
|
||||
https_proxy: "{{ system_proxy | default('') }}"
|
||||
loop:
|
||||
- https://repo.zabbix.com/zabbix-official-repo-apr2024.gpg
|
||||
- https://repo.zabbix.com/zabbix-official-repo.key
|
||||
tags: repo,zabbix
|
||||
|
||||
- name: Add Zabbix repo
|
||||
apt_repository:
|
||||
repo: deb https://repo.zabbix.com/zabbix/{{ zabbix_major_version }}/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main
|
||||
filename: zabbix
|
||||
tags: repo,zabbix
|
||||
|
||||
|
Reference in New Issue
Block a user