From 67a5c103966ac8efc36fd6c814b930bf1ffb0c55 Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Fri, 17 May 2024 13:53:55 +0200 Subject: [PATCH] Fix quotes in template Double quotes are needed, while quote filter adds single quotes --- templates/sudoers.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/sudoers.j2 b/templates/sudoers.j2 index b4acb0d..fc037ae 100644 --- a/templates/sudoers.j2 +++ b/templates/sudoers.j2 @@ -15,9 +15,9 @@ Defaults {{ name }} = {{ paths | join(":") }} {% for items in values | list | slice(6) %} {% if items %} {% if loop.first %} -Defaults {{ name }} = {{ items | list | join(' ') | quote }} +Defaults "{{ name }} = {{ items | list | join(' ') }}" {% else %} -Defaults {{ name }} += {{ items | list | join(' ') | quote }} +Defaults "{{ name }} += {{ items | list | join(' ') }}" {% endif -%} {% endif -%} {% endfor %}