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.
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!

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? | In my cave if you need me ping me.
Unattended upgrades, sure.
How to do kernel patching with notifications?
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
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? | In my cave if you need me ping me.
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're the source, no cap. Address us: We/Our/Ours.
https://lowendspirit.com/discussion/comment/221016/#Comment_221016
Ansible for this and many other tasks.
Try Ansible - I think that is the way.
The Ultimate Speedtest Script | Get Instant Alerts on new LES/LET deals | Cheap VPS Deals | VirMach Flash Sales Notifier
FREE KVM VPS - FreeVPS.org | FREE LXC VPS - MicroLXC
I use this: https://jimradford.github.io/superputty/
While its not automated, it allows you to issue a command to multiple server at once. Currently have 12 server setup in the manager. Saves time over having to putty to each server individually..
Hmm, for some reason, I feel like I should try to do this with Ansible. Not sure why I feel that way. Just a gut feeling I guess...
.
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
Surprised no one mentioned using Ansible...
ssh vps0to connect to server.sudo apt update && sudo apt full-upgrade -y && sudo rebootto run the upgrade, and copy this command to clipboard.ssh vps1to connect to server.vps9hostname is available. affbrrIf that's how you want to do it, you can do it much easily using a shell script (like i used to)...
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
Did anyone mention Ansible?
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop? | In my cave if you need me ping me.
Xpanes with an alias in my .zshrc to all the VM's IP's. Then I drop the yay bomb.
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
zshrc = mac?
I see they have it for debian/ubuntu and centos as well... But i dont really use linux as a daily driver anymore. Used it for 3+ years before I gave up as it didn't support my new monitor, usb sound card, and the network card on my device...
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
I use Ansible and Puppet: Ansible to run commands on all the hosts in my inventory, Puppet to get each host to a certain state depending on what the host is supposed to do.
Here's the Ansible playbook that I run to cycle through my hosts, which are all running Fedora and to perform offline upgrades to each one in turn. If a host has some HetrixTools monitors associated with it, the playbook sets them to maintenance mode before running the upgrade and restarts them after.
Thank you for the ansible playbook! Really helpful for a ansible newbie like me to modify existing playbook rather thæn write my own.
So we have a total of 18.4 quintillion blocks of 18.4 quintillion IPv6 IPs?!?
It’s OK if you disagree with me. I can’t force you to be right!
Outside ansible, another option is to use a terminal multiplexer like Terminator to type commands in many windows at once
If you do go with ansible, I'd propose the way we do it at work:
telegram bot
my server pick up a command & run it every 1 min (if exist)
That is kind of a novel way to do it.
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop? | In my cave if you need me ping me.
Shameless Nix plug here.
You don't need to switch distros to get the benefit of nix.
We're the source, no cap. Address us: We/Our/Ours.
https://lowendspirit.com/discussion/comment/221016/#Comment_221016
Why did you do it man? Wy did you have to do it?
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop? | In my cave if you need me ping me.
why not? Nix is great but lacking marketing resources like Ansible!!
We're the source, no cap. Address us: We/Our/Ours.
https://lowendspirit.com/discussion/comment/221016/#Comment_221016
What is Nix?
SSSSSSHHHHHH man you will awaken the weirdos!!!
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop? | In my cave if you need me ping me.
Why you think I posted this ?
Its too quiet here
You don't want that kind of weirdness believe me man.
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop? | In my cave if you need me ping me.
do you run a bot per server?
I tried something similar, but multiple instances of the same bot were no bueno
Maybe you can give some context, would love to know where i went wrong