From 1a06701eea4991b4f3865f3ba3ff4835836a9aa4 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 12 Dec 2023 15:25:23 +0100 Subject: [PATCH] 111 --- playbooks/00_install_zabbix_agent.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/playbooks/00_install_zabbix_agent.yml b/playbooks/00_install_zabbix_agent.yml index 4a2fbdf..a81d14e 100644 --- a/playbooks/00_install_zabbix_agent.yml +++ b/playbooks/00_install_zabbix_agent.yml @@ -13,7 +13,7 @@ ansible.builtin.apt: deb: https://repo.zabbix.com/zabbix/6.4/ubuntu-arm64/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb when: - - ansible_facts.architecture != "armv7l" + - ansible_facts.architecture != "armv7l" and ansible_distribution == "Ubuntu" - name: Install a .deb package from the internet ansible.builtin.apt: deb: https://repo.zabbix.com/zabbix/6.4/raspbian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian11_all.deb @@ -21,8 +21,13 @@ delay: 5 when: - ansible_facts.architecture == "armv7l" - ignore_errors: true + + - name: Install a .deb package from the internet + ansible.builtin.apt: + deb: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian11_all.deb + when: + - ansible_facts.architecture != "armv7l" and ansible_distribution == "Debian" # - name: Install a .deb package localy # ansible.builtin.apt: # deb: /tmp/zabbix-release_6.4-1+ubuntu22.04_all.deb