Patching Server for Homelab
Keeping your servers up-to-date is crucial for security and performance. Here’s a simple Ansible playbook to help you patch your homelab servers efficiently:
- hosts: servers
tasks:
- name: Update cache
apt:
update_cache: yes
- name: Upgrade all packages on servers
apt:
name: "*"
state: latest