repos: - { src: "g...@bitbucket.org:USER/REPO-Y.git", dest: "/opt/REPO_YYY/" }
- name: Display all repos debug: var: item with_items: "{{ repos }}"
- name: gitclone git: repo: '{{ item.src }}' dest: '{{ item.dest }}' accept_hostkey: yes version: '{{gitrepo}}' key_file: ~/.keys force: yes with_items: "{{ repos }}"
ok: [XXXXX] => (item={u'dest': u'/opt/REPO-YYY', u'src': u'g...@bitbucket.org:USER/REPO-Y.git'}) => { "item": { "dest": "/opt/REPO-YYY", "src": "g...@bitbucket.org:USER/REPO-Y.git" }}
TASK [ROLE: gitclone] ********************************************************fatal: [XXXX]: FAILED! => {"failed": true, "msg": "ERROR! 'item' is undefined"}fatal: [XXXX]: FAILED! => {"failed": true, "msg": "ERROR! 'item' is undefined"}--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1e361272-25de-4c54-93a5-e23dc6c1b987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1e361272-25de-4c54-93a5-e23dc6c1b987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.