When provisioning a new host for the first time, the install aptitude step fails. Sshing into the server and running sudo apt update fixes the problem, so we may just need to swap the order of some stuff here.
Brett thinks this is related to the Linux version, so maybe we can put some conditional stuff in here?
TASK [common : install aptitude] **************************
fatal: [prod-worker1]: FAILED! => {"changed": false, "msg": "No package matching 'aptitude' is available"}
$ sudo apt install aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package aptitude is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'aptitude' has no installation candidate
https://github.com/tenforwardconsulting/subspace/blob/master/ansible/roles/common/tasks/main.yml#L67-L73