feat: move prereq to dedicated role

This commit is contained in:
Simon Cornet 2025-06-06 17:10:18 +02:00
commit 75226a9c78
5 changed files with 3 additions and 87 deletions

View file

@ -3,15 +3,10 @@
# load variables and collect version information
- name: "include vars and collect versions"
tags:
- "zabbix_agent_prereq"
- "zabbix_agent_install"
- "zabbix_agent_config"
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:
@ -22,13 +17,6 @@
register: "zabbix_current_version"
# zabbix-agent prerequisites
- name: "zabbix-agent prerequisites"
ansible.builtin.import_tasks: "prerequisites.yaml"
tags:
- "zabbix_agent_prereq"
# zabbix-agent install
- name: "zabbix-agent install"
ansible.builtin.import_tasks: "install.yaml"