Ansible git module not checking out a branch


I’m using ansible to checkout my webapplication on EC2 web instances. My code is as followed:

As long as webapp_version = masterit works perfectly. But as soon as I put a SHA1 or Branch name it will fail.

It’s quite strange.

I use:


And again I will answer one of my own questions. The depth=5 was the killer. Well don’t use it if you want to have access to all your different versions 😉

Leave a Reply