From f6686c6cb9c2677eaeb5548a5fb8e3c43cdb0727 Mon Sep 17 00:00:00 2001 From: Japje Date: Fri, 9 Aug 2024 22:07:21 +0200 Subject: [PATCH] Userparameter fix for #1361 (#1363) --- 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..9cf87c4a1 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 if zabbix_agent_include_dir is string else zabbix_agent_include_dir | first }}/userparameter_{{ item.name }}.conf" owner: zabbix group: zabbix mode: "0644"