feat: add when condition
This commit is contained in:
parent
f92eff4aa9
commit
f54bd58731
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue