How to upate external ubuntu server via a button in HA

All topics I search on I find the othr way around, how to update your ubuntu server with HA on it.

What I want is to have an option to kick a remote ubuntu server to start sudo apt-get update and upgrade etc. to be able to simply “manage” remote ubuntu servers to install their latest patches.

Any direction?

How did you install Hass? Hassio on Ubuntu ? You can run ssh command out of docker . I’ll post something later if you want …I turn on and off my my attached touchscreen with a mqqt client running on the host

You can modify this

Hello thundergreen, thank you for your reply but is had nothing to do with my question.

I am not askin anything about the hass installation at all.

i am asking how to update another ubuntu server via a button in hass, thus not the hass server.

Just install the client on the server u wanna update

Maybe this will give you idea how to do that.

Thank you will look at. He’s doing it from the car :slight_smile:

Yes :smiley: that was probably only quite place he could find. (small children in the house) :smiley:

Surely ssh is the way to do this.

Sure… but what and how…

A commandline switch.

My preference would be a command line switch that triggersa simple Ansible play:

- name: Apt Upgrade
  apt:
    name: "*"
    state: latest
    update_cache: yes

To make things simple you’ll need to copy your public key to the target machines.

Alternatively, a quick and dirty bash one liner:

ssh TARGET apt-get upgrade -y

Surely

ssh TARGET apt-get update && apt-get upgrade -y