Hi, I am relatively new to trellis, but I could fix the issue both on my local dev and the production by the following steps.
A review from the expert would be appreciated 
Start by fixing the local development env.
On your local machine:
% cd PATH_TO_YOUR_PROJECT/trellis
Create a branch to fix the issue (if you prefer)
% git co -b fix-wp-repo
Edit your composer.json
% nano composer.json
by deleting the following line.
"johnpbloch/wordpress": "^4.7",
Save the file, and apply the change on the vagrant host.
% vagrant ssh
$ cd /srv/www/YOUR_HOST_NAME/current
$ composer update
$ composer clear-cache
$ composer require johnpbloch/wordpress
$ exit
Commit the change on composer files.
% git add .
% git commit -m ‘Fix the wordpress repo change’
% git push origin fix-wp-repo
Merge the fix above on the github or wherever you are hosting your repo.
Next, fix the production. Make sure that USER_NAME has a sudo privilege.
% ssh USER_NAME@YOUR_PRODUCTION_IP
$ cd /srv/www/YOUR_HOST_NAME/current
$ sudo -u web nano composer.json
Delete the following line.
"johnpbloch/wordpress": "^4.7",
then save the file.
$ sudo -u web composer update
$ sudo -u web composer clear-cache
$ sudo -u web composer require johnpbloch/wordpress
If you could successfully update the production, exit back to your local machine.
$ exit
and make sure that your deploy work for the production.
% ansible-playbook deploy.yml -e "site=YOUR_HOST_NAME env=production"