This commit is contained in:
2026-02-15 15:14:54 +01:00
parent b03bad579c
commit a71614bd69
7 changed files with 48 additions and 19 deletions

View File

@@ -89,8 +89,16 @@
- zabbix-agent2-plugin-postgresql
# - zabbix-agent2-plugin-mysql
update_cache: true
when: inventory_hostname not in ['nas.home.lan','router.home.lan']
- name: Install zabbix packages
ansible.builtin.apt:
name:
- zabbix-agent2
# - zabbix-agent2-plugin-mysql
update_cache: true
when: inventory_hostname == 'router.home.lan'
when: inventory_hostname != 'nas.home.lan'
- name: Upgrade zabbix packages
ansible.builtin.apt:
name:
@@ -100,7 +108,7 @@
# - zabbix-agent2-plugin-mysql
only_upgrade: true
state: present
when: inventory_hostname != 'nas.home.lan'
when: inventory_hostname not in ['nas.home.lan','router.home.lan']
- name: Reconfigure zabbix agent Server
ansible.builtin.lineinfile: