From 9dd62c0f2f15d18490d6afd70f94a3023a8e1af0 Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Wed, 17 Jul 2024 16:16:31 -0500 Subject: [PATCH] Create file if it doesn't exist for coredump rules Fixes #12171 --- shared/macros/10-ansible.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/macros/10-ansible.jinja b/shared/macros/10-ansible.jinja index 84f23f4863b..ff87e24edc7 100644 --- a/shared/macros/10-ansible.jinja +++ b/shared/macros/10-ansible.jinja @@ -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 %}}