From 6193223f7fd7eecdc665080852f4186df23d2686 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Fri, 12 Jan 2024 08:40:03 +0100 Subject: [PATCH] Update template --- templates/etc/dnf/automatic.conf.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/etc/dnf/automatic.conf.j2 b/templates/etc/dnf/automatic.conf.j2 index 1406a17..3848946 100644 --- a/templates/etc/dnf/automatic.conf.j2 +++ b/templates/etc/dnf/automatic.conf.j2 @@ -21,6 +21,16 @@ download_updates = yes # install.timer override this setting. apply_updates = yes +{% if ansible_os_family == "RedHat" and ansible_distribution_major_version == '9' %} +# When the system should reboot following upgrades: +# never = don't reboot after upgrades +# when-changed = reboot after any changes +# when-needed = reboot when necessary to apply changes +reboot = never + +# The command that is run to trigger a system reboot. +reboot_command = "shutdown -r +5 'Rebooting after applying package updates'" +{% endif %} [emitters] # Name to use for this system in messages that are emitted. Default is the