ansible/roles/git/tasks/main.yml

13 lines
367 B
YAML
Raw Permalink Normal View History

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- name: clone git repos
2022-06-16 23:45:29 -05:00
ansible.builtin.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 }}"