roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Improve handling of WP-CLI failed verification #1296

Closed swalkinshaw closed 3 years ago

swalkinshaw commented 3 years ago

Fixes #1295

Sometimes gpg signature verification for WP-CLI could fail due to network reasons (the downloaded phar or asc files were corrupt). In those cases the playbook will be a "stuck" state unless the files are manually deleted from the server.

This improves error handling by deleting both the phar and asc files which will allow Ansible to re-download them next time.