zabbix-prereq/tasks/main.yaml
2025-06-06 17:12:03 +02:00

23 lines
661 B
YAML

---
# load variables and collect version information
- name: "include vars and collect versions"
block:
# load os specific variables
- name: "include os specific vars"
ansible.builtin.include_vars: "{{ ansible_os_family }}.yaml"
# collect zabbix-agent2 version information
- name: "collect version information"
ansible.builtin.shell:
cmd: "apt policy | grep 'zabbix/' | head -n 1"
changed_when: false
failed_when: false
ignore_errors: true
register: "zabbix_current_version"
# zabbix-agent prerequisites
- name: "zabbix-agent prerequisites"
ansible.builtin.import_tasks: "prerequisites.yaml"