From 5d711603d17e55dc85f6925f523ca3a35a54f4aa 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 435ec7fd229a..bdcc6be51d09 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 %}}