ansible/roles/git/tasks/main.yml
2020-11-07 22:40:15 -06:00

13 lines
351 B
YAML

#!/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 }}"