Skip to content

Commit

Permalink
Create file if it doesn't exist for coredump rules
Browse files Browse the repository at this point in the history
Fixes #12171
  • Loading branch information
Mab879 committed Jul 17, 2024
1 parent 87a5295 commit 9dd62c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/macros/10-ansible.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ value: :code:`Setting={{ varname1 }}`

{{{ ansible_set_config_file(msg, "/etc/systemd/coredump.conf.d/oscap-autoremedy.conf", parameter=parameter, value=value, create="yes", separator="=", separator_regex="\s*=\s*", insert_after="[Coredump]") }}}
{{% else %}}
{{{ ansible_set_config_file(msg, "/etc/systemd/coredump.conf", parameter=parameter, value=value, create="no", separator="=", separator_regex="\s*=\s*") }}}
{{{ ansible_set_config_file(msg, "/etc/systemd/coredump.conf", parameter=parameter, value=value, create="yes", separator="=", separator_regex="\s*=\s*") }}}
{{% endif %}}
{{%- endmacro %}}

Expand Down

0 comments on commit 9dd62c0

Please sign in to comment.