feat: move stuff around for testing

This commit is contained in:
Simon Cornet 2025-10-03 10:35:17 +02:00
commit 9d117e9fb8
11 changed files with 6 additions and 1 deletions

23
tasks/main.yaml Normal file
View file

@ -0,0 +1,23 @@
---
# load variables and collect version information
- name: "include vars and collect versions"
block:
# collect zabbix-agent2 version information
- name: "collect version information"
ansible.builtin.shell:
cmd: "zabbix_agent2 --version | head -n 1"
changed_when: false
failed_when: false
ignore_errors: true
register: "zabbix_current_version"
# zabbix-agent install
- name: "zabbix-agent install"
ansible.builtin.include_tasks: "install.yaml"
# zabbix-agent config
- name: "zabbix-agent config"
ansible.builtin.include_tasks: "config.yaml"