reigster is not working with ansible git task

后端 未结 1 1629
刺人心
刺人心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-26 05:52

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

    - 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 
    

    0 讨论(0)
提交回复
热议问题