2017-09-11 12:48:16 +02:00
|
|
|
---
|
|
|
|
- name: install git packages
|
2017-10-11 17:53:20 +02:00
|
|
|
package:
|
2018-09-16 12:38:33 +02:00
|
|
|
name: "{{ git_packages }}"
|
2017-09-11 12:48:16 +02:00
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: ensure git directory is present
|
|
|
|
file:
|
|
|
|
path: /home/admin/clones
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
|
|
|
|
- name: clone git repositories
|
|
|
|
git:
|
|
|
|
repo: "{{ item.value.repo_url }}"
|
|
|
|
dest: "/home/admin/clones/{{ item.key }}"
|
2017-09-30 23:00:09 +02:00
|
|
|
version: "{{ item.value.version }}"
|
2018-09-11 14:22:59 +02:00
|
|
|
force: "{{ item.value.force }}"
|
2018-09-16 12:38:33 +02:00
|
|
|
loop: "{{ common_repos | dict2items }}"
|
2017-09-17 14:43:54 +02:00
|
|
|
become: false
|