This commit is contained in:
2025-03-18 17:24:20 +01:00
parent 5792932507
commit 3f601f92a0
13 changed files with 414 additions and 91 deletions

View File

@ -26,11 +26,11 @@
# ansible.builtin.copy:
# src: packages/zabbix-release_6.4-1+ubuntu22.04_all.deb
# dest: /tmp/
- name: Install a .deb package from the internet11
- name: Install a .deb package from the internet111
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
deb: https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu24.04_all.deb
when:
- ansible_facts.architecture != "armv7l" and ( ansible_distribution == "Ubuntu" or ansible_distribution == "Linux Mint" )
- ansible_facts.architecture != "armv7l" and ( ansible_distribution == "Ubuntu1" or ansible_distribution == "Linux Mint" )
- name: Install a .deb package from the internet2
ansible.builtin.apt:
@ -77,7 +77,7 @@
path: "{{ zabbix_agent_cfg }}"
regexp: "^Server=.*"
insertafter: '^# Server='
line: "Server=192.168.77.0/24,172.30.0.0/24"
line: "Server=192.168.77.0/24,192.168.89.0/28"
- name: Reconfigure zabbix agent ServerActive