feat(projects): configure bare and version

This commit is contained in:
Oliver Davies 2022-08-16 12:39:25 +01:00
parent 79e92712a4
commit 182a3bf861

View file

@ -11,9 +11,11 @@
- name: Clone projects
ansible.builtin.git:
accept_hostkey: yes
bare: "{{ project_item.bare | default(true) }}"
clone: yes
dest: "{{ ansible_user_dir }}/Code/{{ project_item.dest }}"
repo: "{{ project_item.repo }}"
version: "{{ project_item.version | default('main') }}"
update: no
loop_control:
loop_var: project_item