2 - name: create global git config file
8 - name: create git repository directory
10 path: "{{ user.git }}"
16 - name: create git group repository directories
18 path: "{{ user.git }}/{{ item.group }}"
21 with_items: "{{ projects }}"
25 - name: clone git repositories
26 shell: "git clone {{ item.repository }} {{ user.git }}/{{ item.group }}/{{ item.name }}"
28 creates: "{{ user.git }}/{{ item.group }}/{{ item.name }}"
29 with_items: "{{ projects }}"
32 - name: setup git push mirrors for origin
33 shell: "git remote set-url origin --push --add {{ item.1.location }} && touch {{ user.git }}/{{ item.0.group }}/{{ item.0.name }}/.ansible-git-mirror-{{ item.1.name }}"
35 chdir: "{{ user.git }}/{{ item.0.group }}/{{ item.0.name }}"
36 creates: "{{ user.git }}/{{ item.0.group }}/{{ item.0.name }}/.ansible-git-mirror-{{ item.1.name }}"
42 - name: setup git extra remotes
43 shell: "git remote add {{ item.1.name }} {{ item.1.location }} && touch {{ user.git }}/{{ item.0.group }}/{{ item.0.name }}/.ansible-git-remote-{{ item.1.name }}"
45 chdir: "{{ user.git }}/{{ item.0.group }}/{{ item.0.name }}"
46 creates: "{{ user.git }}/{{ item.0.group }}/{{ item.0.name }}/.ansible-git-remote-{{ item.1.name }}"
54 name: talendrepositories
59 - name: create git group repository directories
61 path: "{{ user.git }}/talend"
68 - name: clone Talend git repositories
69 shell: "git clone github:/talend/{{ item.name }}.git {{ user.git }}/talend/{{ item.name }}"
71 creates: "{{ user.git }}/talend/{{ item.name }}"
72 with_items: "{{ talendrepositories.projects }}"
77 - name: setup Talend git extra remotes
78 shell: "git remote add {{ item.1.name }} {{ item.1.url }} && touch {{ user.git }}/talend/{{ item.0.name }}/.ansible-git-remote-{{ item.1.name }}"
80 chdir: "{{ user.git }}/talend/{{ item.0.name }}"
81 creates: "{{ user.git }}/talend/{{ item.0.name }}/.ansible-git-remote-{{ item.1.name }}"
83 - "{{ talendrepositories.projects }}"