feat: initial commit

This commit is contained in:
Simon Cornet 2025-06-06 17:53:55 +02:00
commit 8cee41cfa8
16 changed files with 328 additions and 0 deletions

31
tasks/main.yaml Normal file
View file

@ -0,0 +1,31 @@
---
# load variables and collect version information
- name: "include vars and collect versions"
tags:
- "zabbix_agent_install"
- "zabbix_agent_config"
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.import_tasks: "install.yaml"
tags:
- "zabbix_agent_install"
# zabbix-agent config
- name: "zabbix-agent config"
ansible.builtin.import_tasks: "config.yaml"
tags:
- "zabbix_agent_config"