feat: fixes not cloning repo when not using a local template directory when setting up a project.

This commit is contained in:
2024-12-12 17:57:07 -05:00
parent a20ce14bce
commit be73219aaa
3 changed files with 204 additions and 92 deletions

View File

@@ -11,12 +11,19 @@
tags:
- always
- name: Debug template variable.
ansible.builtin.debug:
var: template
tags:
- debug
- never
- name: Ensure repo.
ansible.builtin.git:
repo: "{{ template.repo.url }}"
dest: "{{ template_dir }}"
version: "{{ template.repo.version | default('main') }}"
when: template.repo.url is defined and not template_dir_stat.stat.exists
when: template.repo.url is defined
tags:
- always