Add 'apt_preferences' role, small bugfixes