reigster is not working with ansible git task

后端 未结 1 1645
刺人心
刺人心 2021-01-26 05:18

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



        
相关标签:
1条回答
  • 2021-01-26 05:52

    register is a task parameter, not module parameter, so mind the padding:

    - git: 
            repo: http://<git url>/<user>/<repo>
            dest: /home/atul/Workplace/test-ansible
            version: "{{ GIT_TAG }}"
            refspec: '+refs/tags/{{GIT_TAG}}:refs/remotes/origin/tags/{{GIT_TAG}}'
            update: no
      register: cloned 
    
    0 讨论(0)
提交回复
热议问题