ansible/roles/git/tasks/main.yml

13 lines
351 B
YAML
Raw Normal View History

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- name: clone git repos
git:
accept_hostkey: yes
depth: "{{ item.depth | default(1, true) }}"
dest: "{{ item.dest }}"
force: "{{ item.force | default(false, true) }}"
repo: "{{ item.repo }}"
version: "{{ item.version | default('HEAD', true) }}"
loop: "{{ git_repos }}"