feat: fixes not cloning repo when not using a local template directory when setting up a project.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user