Changed file structure. Added zabbix proxy playbook

This commit is contained in:
2025-08-24 14:30:55 +02:00
parent 7bd28950ca
commit 1197e92bd8
4 changed files with 96 additions and 28 deletions

View File

@@ -0,0 +1,16 @@
- name: Upgrade zabbix agent
hosts: zagents
become: true
tasks:
- name: Ensure that Zabbix agent is at the latest version
ansible.builtin.apt:
name: zabbix-agent2
state: latest
register: zabbix_agent2_status
- name: Upgrade Zabbix agent if not latest
ansible.builtin.apt:
name: zabbix-agent2
upgrade: yes
when: zabbix_agent2_status.changed