I want to debug git task in my ansible play-book.When I am using register keyword for that but it is throwing me error .This is my playbook code
register is a task parameter, not module parameter, so mind the padding:
register
- git: repo: http://// dest: /home/atul/Workplace/test-ansible version: "{{ GIT_TAG }}" refspec: '+refs/tags/{{GIT_TAG}}:refs/remotes/origin/tags/{{GIT_TAG}}' update: no register: cloned