Commit Graph

2 Commits (bc7e7c24750ede22158f3f90876039617317c9cd)

Author SHA1 Message Date
Dustin 0464041cf8 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`.
2024-06-23 10:43:15 -05:00
Dustin 58972cf188 auto-updates: Install and configure dnf-automatic
*dnf-automatic* is an add-on for `dnf` that performs scheduled,
automatic updates.  It works pretty much how I would want it to:
triggered by a systemd timer, sends email reports upon completion, and
only reboots for kernel et al. updates.

In its default configuration, `dnf-automatic.timer` fires every day.  I
want machines to update weekly, but I want them to update on different
days (so as to avoid issues if all the machines reboot at once).  Thus,
the _dnf-automatic_ role uses a systemd unit extension to change the
schedule.  The day-of-the-week is chosen pseudo-randomly based on the
host name of the managed system.
2024-06-12 06:25:17 -05:00