2017-09-11 12:48:16 +02:00
|
|
|
---
|
|
|
|
- name: install git packages
|
2017-10-11 17:53:20 +02:00
|
|
|
package:
|
2017-09-11 12:48:16 +02:00
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- git
|
|
|
|
|
|
|
|
- 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 }}"
|
2017-09-11 12:48:16 +02:00
|
|
|
with_dict: "{{ common_repos }}"
|
2017-09-17 14:43:54 +02:00
|
|
|
become: false
|