From 5a0aa92349c5ebfb8e49a65d3f80b169b4abb827 Mon Sep 17 00:00:00 2001 From: Markus Linnala Date: Thu, 11 May 2023 22:48:42 +0300 Subject: [PATCH] fix: sysctl/ansible: work with older than v2.11.0 Jinja2 --- shared/templates/sysctl/ansible.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/templates/sysctl/ansible.template b/shared/templates/sysctl/ansible.template index cf9348942b20..29b3ad9acd81 100644 --- a/shared/templates/sysctl/ansible.template +++ b/shared/templates/sysctl/ansible.template @@ -32,7 +32,7 @@ {{%- if sysctl_remediate_drop_in_file != "true" %}} {{#- sysctl module manages only last entry #}} before: >- - .*\n{{{ setsysctlvar_rx | trim('^') }}} + .*\n{{{ setsysctlvar_rx.lstrip('^') }}} {{%- endif %}} {{%- if SYSCTLVAL is none or SYSCTLVAL is not string %}}