Skip to content

Commit

Permalink
fix: sysctl/oval: work with older than 2.8 Jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
maage committed May 11, 2023
1 parent 45b3473 commit 56acc81
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions shared/templates/sysctl/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
# disruption = medium

{{#- sysctl quirks -#}}
{{%- set setsysctlvar_rx -%}}
^[ \t]*-?[ \t]*{{{
SYSCTLVAR | escape_regex_sq |
replace('[.]', '[./]') | replace('[/]', '[./]')
}}}[ \t]*=
{{%- endset %}}
{{%- set setsysctlvar_rx = '^[ \t]*-?[ \t]*' ~ SYSCTLVAR | escape_regex_sq | replace('[.]', '[./]') | replace('[/]', '[./]') ~ '[ \t]*=' %}}
- name: List /etc/sysctl.d/*.conf files
ansible.builtin.find:
paths: {{{ ansible_sysctl_set_config_directories() }}}
Expand Down

0 comments on commit 56acc81

Please sign in to comment.