Shellcheck highlights an issue with the shell script snippet:
In roles/core/certificates/files/delete-certbot-certificate.sh line 28: echo "Usage: $(basename $0) <certificate>" >&2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "Usage: $(basename "$0") <certificate>" >&2