Skip to content

Commit

Permalink
fix: sysctl/ansible: work with older than v2.11.0 Jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
maage committed May 11, 2023
1 parent 55ce4dd commit 5a0aa92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/templates/sysctl/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}}

Expand Down

0 comments on commit 5a0aa92

Please sign in to comment.