Skip to content

Commit

Permalink
Userparameter fix for #1361 (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Japje authored Aug 9, 2024
1 parent 6141221 commit f6686c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/1361_userparameters_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- zabbix_agent Role - Fix for userparameter because include_dir is list #1361
2 changes: 1 addition & 1 deletion roles/zabbix_agent/tasks/userparameter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- name: Install user-defined userparameters
ansible.builtin.template:
src: "{{ zabbix_agent_userparameters_templates_src }}/{{ item.name }}.j2"
dest: "{{ zabbix_agent_include_dir }}/userparameter_{{ item.name }}.conf"
dest: "{{ zabbix_agent_include_dir if zabbix_agent_include_dir is string else zabbix_agent_include_dir | first }}/userparameter_{{ item.name }}.conf"
owner: zabbix
group: zabbix
mode: "0644"
Expand Down

0 comments on commit f6686c6

Please sign in to comment.