My git workspace is dirty, there are some local modifications. When I use the command
git pull origin master
it works fine because there is no conflict.
But when I'm trying to use Ansible like
git: repo=xxxx dest=xxx version={{branch}}
I got error
Local modifications exist in repository (force=no)
If I add force=yes, then I will lose my local modifications.
What can I do to keep my local changes and pull the latest commit from git by using the Ansible git module?