Upgrade Trellis server packages

Worried about outdated apt packages on your Trellis server?

Here’s a little trick to upgrade all outdated apt packages. Add this 5below “Update Apt” task in /roles/common/tasks/main.yml

- name: Upgrade Apt packages
  apt: upgrade=dist

When running the provision script every package that is not up to date will be upgraded. This is however somewhat risky so don’t forget to try it on your local and staging servers before doing it on production.

Run vagrant provision to provision your local Vagrant server and ansible-playbook -i hosts/<host> server.yml to provision staging or production server.