diff --git a/changelogs/fragments/1361_userparameters_fix.yml b/changelogs/fragments/1361_userparameters_fix.yml new file mode 100644 index 000000000..ed19b469e --- /dev/null +++ b/changelogs/fragments/1361_userparameters_fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - zabbix_agent Role - Fix for userparameter because include_dir is list #1361 \ No newline at end of file diff --git a/roles/zabbix_agent/tasks/userparameter.yml b/roles/zabbix_agent/tasks/userparameter.yml index 9b3207690..e96ac2643 100644 --- a/roles/zabbix_agent/tasks/userparameter.yml +++ b/roles/zabbix_agent/tasks/userparameter.yml @@ -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 | first }}/userparameter_{{ item.name }}.conf" owner: zabbix group: zabbix mode: "0644"