What do you use to manage & update multiple servers?

somiksomik OG

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

Sign In or Register to comment.