From 0464041cf84d448fc9d97e7e16cc02a0abd9ddfe Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 23 Jun 2024 10:42:09 -0500 Subject: [PATCH] r/dnf-automatic: Allow excluding packages Some hosts may have packages that we do not want to have updated automatically. For those, we can set `dnf_automatic_exclude`. --- roles/dnf-automatic/templates/dnf-automatic.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/dnf-automatic/templates/dnf-automatic.conf.j2 b/roles/dnf-automatic/templates/dnf-automatic.conf.j2 index a6dc3ab..40a4197 100644 --- a/roles/dnf-automatic/templates/dnf-automatic.conf.j2 +++ b/roles/dnf-automatic/templates/dnf-automatic.conf.j2 @@ -99,3 +99,6 @@ email_to = root # Use this to filter DNF core messages debuglevel = 1 installonly_limit = 2 +{% if dnf_automatic_exclude|d(none) %} +excludepkgs = {{ dnf_automatic_exclude }} +{% endif %}