<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>playbook automation – apt-upgrade.me – Homelab, Linux &amp; DevSecOps</title><link>https://www.apt-upgrade.me/tag/playbook-automation/</link><description>One nerd's homelab: Linux, Kubernetes, security, and the occasional disaster.</description><language>en-GB</language><lastBuildDate>Wed, 28 May 2025 20:00:00 +0200</lastBuildDate><atom:link href="https://www.apt-upgrade.me/tag/playbook-automation/index.xml" rel="self" type="application/rss+xml"/><item><title>Patch Me If You Can: Keeping Debian VMs Updated with Ansible (Without Losing My Weekend)</title><link>https://www.apt-upgrade.me/2025/05/28/patch-me-if-you-can-keeping-debian-vms-updated-with-ansible/</link><pubDate>Wed, 28 May 2025 20:00:00 +0200</pubDate><guid>https://www.apt-upgrade.me/2025/05/28/patch-me-if-you-can-keeping-debian-vms-updated-with-ansible/</guid><description>&lt;p&gt;&lt;strong&gt;In short:&lt;/strong&gt; Updating around twelve &lt;a href="https://www.debian.org/"&gt;Debian&lt;/a&gt; VMs by hand, one after the other over SSH, was slow, boring and error-prone. Now a simple &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; playbook does it: it updates all machines, reboots them if needed and reports what happened. The post shows the playbook.&lt;/p&gt;&#10;&lt;p&gt;I have around 12 Debian-based VMs running in my homelab. A while ago, I used to update them all manually — one by one. SSH into each machine, run &lt;code&gt;apt update &amp;amp;&amp;amp; apt upgrade&lt;/code&gt;, wait, reboot if needed... then repeat. It worked, but it was slow, boring, and very easy to forget one or two machines.&lt;/p&gt;</description></item></channel></rss>