Deploy bedrock from windows to Digital Ocean with ansible

Hey, I was just searching the forums for an error I am receiving from WSL and I found this post.

The error I am getting is:
invalid shell option nameopt: nullglob

This happens when I run:
./bin/deploy.sh staging sitename.com

But not when I run:
ansible-playbook deploy.yml -e "site=sitename.com env=staging"

Another site I deploy with WSL works fine using both commands and I have checked the .deploy.sh files - They are exactly the same.