From 4d0c45f6c2a6451e0d8b2810f4ab6726fe620f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rkus=20S=C3=A1ndor?= Date: Sun, 30 Jul 2023 18:53:23 +0200 Subject: [PATCH] first upload --- tasks/install-zabbix-repo.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tasks/install-zabbix-repo.yml diff --git a/tasks/install-zabbix-repo.yml b/tasks/install-zabbix-repo.yml new file mode 100644 index 0000000..2f56dbe --- /dev/null +++ b/tasks/install-zabbix-repo.yml @@ -0,0 +1,23 @@ +--- +- name: Zabbix repó hozzáadása [Red Hat family] + yum: + name: https://repo.zabbix.com/zabbix/6.4/rhel/{{ ansible_distribution_major_version }}/x86_64/zabbix-release-6.4-1.el{{ ansible_distribution_major_version }}.noarch.rpm + state: present + disable_gpg_check: yes + validate_certs: no + when: + - ansible_os_family == "RedHat" + +- name: Zabbix repó hozzáadása [Debian] + apt: + deb: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian{{ ansible_distribution_version }}_all.deb + state: present + when: + - ansible_distribution == "Debian" + +- name: Zabbix repó hozzáadása [Ubuntu] + apt: + deb: https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu{{ ansible_distribution_version }}_all.deb + state: present + when: + - ansible_distribution == "Ubuntu"