Skip to content

Commit

Permalink
Added list filter to prevent errors, it is still skipped if zabbix_ag…
Browse files Browse the repository at this point in the history
…ent_include_dir is not a list
  • Loading branch information
Thulium-Drake committed Jul 13, 2024
1 parent e846e22 commit e2b77d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/zabbix_agent/tasks/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
group: zabbix
mode: "{{ zabbix_agent_include_mode }}"
state: directory
loop: "{{ zabbix_agent_include_dir }}"
loop: "{{ zabbix_agent_include_dir | list }}" # To prevent errors, filter a string value as a list
loop_control:
loop_var: 'include_dir'
when: zabbix_agent_include_dir is iterable
Expand Down

0 comments on commit e2b77d6

Please sign in to comment.