From c4f6e9e5920759111648b06e6c2e76d9efec4322 Mon Sep 17 00:00:00 2001 From: Jasper Date: Wed, 7 Aug 2024 08:00:36 +0000 Subject: [PATCH] fix for #1361 --- changelogs/fragments/1361_userparameters_fix.yml | 2 ++ roles/zabbix_agent/tasks/userparameter.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/1361_userparameters_fix.yml 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"