What do you use to manage & update multiple servers?
So I have a few servers on ubuntu and debian that I need to ssh into and run the following commands:
sudo apt update
sudo apt upgrade -y
sudo reboot
Previously I created a shell script that I ran from my linux box to ssh into the servers one by one and update them. I also configured the servers sudoers file to allow to run the above 3 commands for my user without password.
So I am wondering if there is a better way to do this.
Current ideas:
1. Continue to use shell scripts
2. Setup unattended-upgrades and run all updates through that
3. Use ansible from a control node
4. Give root access to chatgpt to run updates for me
5. Maybe a mixture of options 1 to 3?
Would love to hear how you are handling the updates and what you recommend is the best way.
It’s OK if you disagree with me. I can’t force you to be right!
IPv4: 32 bits of stress. IPv6: 128 bits of... well, more stress... Have anyone seen my subnet?

Comments
Unattended upgrades and kernel patching with notifications.
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
Unattended upgrades, sure.
How to do kernel patching with notifications?
It’s OK if you disagree with me. I can’t force you to be right!
IPv4: 32 bits of stress. IPv6: 128 bits of... well, more stress... Have anyone seen my subnet?
I see I need to write a blog post on it
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
The professionals setup n8n to run updates for them.
For Ubuntu we use unattended upgrades for security updates. Anything else is done via Ansible.
SharedGrid | Fast, secure, and reliable UK and USA web, reseller and VPS Hosting
9950X and 7950X, Litespeed, Redis Cache, NVMe Drives, Daily Backups, 24x7 Support, Wordpress Optimised.
NixOS.
Discovered it in 2021 and never looked back.
Now, We manage over 20 VPS, some with a provider, some self hosted.
We, the All Seeing Eye, possessing the knowledge of anything and everything, hereby declare that Our proclaimed pronoun be "We/Our/Ours".
https://lowendspirit.com/discussion/comment/221016/#Comment_221016
Ansible for this and many other tasks.