mantidproject / dockerfiles

Docker images relating to Mantid
https://hub.docker.com/u/mantidproject/
GNU General Public License v3.0
3 stars 7 forks source link

Create playbook for updating our Linux nodes #90

Closed robertapplin closed 1 year ago

robertapplin commented 1 year ago

This PR creates an ansible playbook for updating our Linux nodes. It uses a useful role already defined in a Dan Nixon repo.

To test

  1. ssh into a linux node (not the first linux node as this has already been updated)
ssh <username>@<node_ip_address>
  1. Check there is a message that at least 1 package needs updating
  2. Exit the machine
  3. Create an inventory.txt file in your ansible directory containing the details of this node
  4. Run the following playbook
    ansible-playbook -i inventory.txt update.yml -u SSH_USERNAME -K
  5. ssh back into the linux node. Make sure there are no more updates.

Fixes #87

thomashampson commented 1 year ago

I've run the ansible-playbook command but it has skipped the reboot:

TASK [dannixon.system.package_updates : Ensure system is rebooted] **********************************************************************
skipping: [ip address was here]

but when i log back into the machine it says: *** System restart required ***

robertapplin commented 1 year ago

but when i log back into the machine it says: *** System restart required ***

That is odd, I assume there was at least one package update to be made?

thomashampson commented 1 year ago

but when i log back into the machine it says: *** System restart required ***

That is odd, I assume there was at least one package update to be made?

On first login it said:

2 updates can be applied immediately.

10 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

*** System restart required ***

than after running the playbook it said:

0 updates can be applied immediately.

10 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

*** System restart required ***