Ansible git module not checking out a branch

Question:

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:

Answer:

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