feat: add when condition

This commit is contained in:
Simon Cornet 2025-07-04 17:36:42 +02:00
commit f54bd58731

View file

@ -2,6 +2,7 @@
# load variables and collect version information
- name: "include vars and collect versions"
when: "zabbix_agent_enable"
tags:
- "zabbix_agent_install"
- "zabbix_agent_config"
@ -20,6 +21,7 @@
# zabbix-agent install
- name: "zabbix-agent install"
ansible.builtin.import_tasks: "install.yaml"
when: "zabbix_agent_enable"
tags:
- "zabbix_agent_install"
@ -27,5 +29,6 @@
# zabbix-agent config
- name: "zabbix-agent config"
ansible.builtin.import_tasks: "config.yaml"
when: "zabbix_agent_enable"
tags:
- "zabbix_agent_config"