Commit f54bd587 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: add when condition

parent f92eff4a
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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"