# Software to do monitoring and keep track of updates on multiple (10+) servers?

**URL:** https://community.coops.tech/t/software-to-do-monitoring-and-keep-track-of-updates-on-multiple-10-servers/601
**Category:** Technology
**Tags:** software
**Created:** [6 February 2018 18:05 UTC](https://community.coops.tech/t/software-to-do-monitoring-and-keep-track-of-updates-on-multiple-10-servers/601 "2018-02-06T18:05:20Z")
**Posts on this page:** 1
**Showing post:** 15

<div class="post-metadata">

### Author: ![chris](https://community.coops.tech/user_avatar/community.coops.tech/chris/32/2_2.png) [@chris](https://community.coops.tech/u/chris)
#### Post date: [8 November 2018 11:23 UTC](https://community.coops.tech/t/software-to-do-monitoring-and-keep-track-of-updates-on-multiple-10-servers/601/15 "2018-11-08T11:23:10Z")

</div>

> [@chris](#):
>
> for Debian (you need to install the `apt-show-versions` package):
> 
> ```auto
> - name: Check for updates
> command: apt-show-versions -b -u
> register: packages
> tags:
> - update
> 
> ```

The Ansible code above was failing today as the latest version of Docker also installs two new packages (`containerd.io` and `docker-ce-cli`) and `apt-show-versions -b -u` wasn’t listing these, so I have switched to using this command to see what is available to be upgraded and also show new packages:

```yml
- name: Check for updates and new packages using apt-get dist-upgrade -q -s
  shell: apt-get dist-upgrade -q -s | grep '^The following' -A1 | grep '^ ' | xargs
  args:
    warn: False
    executable: /bin/bash
  register: packages

```

And I have moved this code from a private repo to a public Ansible role:

> **[webarch / upgrade · GitLab](https://git.coop/webarch/upgrade)**
>
> Ansible role for updating and upgrading Debian servers.

@stephen hope you can come to the [Ansible session](https://community.coops.tech/t/cotech-gathering-ansible-and-shared-infrastructure-session/1107) at the CoTech hack — the use of Ansible Galaxy to make roles public and shareable is one of the mains thing we want to discuss.

I’m now about to use this role to upgrade the server running this Discourse site so it is going to go down for a few minutes…

---

_[View the full topic](https://community.coops.tech/t/software-to-do-monitoring-and-keep-track-of-updates-on-multiple-10-servers/601)._
