feat: Changes template_dir to template in build-project
This commit is contained in:
@@ -15,19 +15,19 @@
|
||||
|
||||
- name: Ensure template repo.
|
||||
ansible.builtin.git:
|
||||
repo: "{{ template_dir.repo.url }}"
|
||||
dest: "{{ template_dir.path }}"
|
||||
version: "{{ template_dir.repo.version | default('main') }}"
|
||||
when: template_dir.repo.url is defined
|
||||
repo: "{{ template.repo.url }}"
|
||||
dest: "{{ template.path }}"
|
||||
version: "{{ template.repo.version | default('main') }}"
|
||||
when: template.repo.url is defined
|
||||
|
||||
- name: Check for repo vars directory.
|
||||
ansible.builtin.stat:
|
||||
path: "{{ template_dir.path }}/{{ template_dir.vars }}"
|
||||
path: "{{ template.path }}/{{ template.vars }}"
|
||||
register: repo_vars
|
||||
|
||||
- name: Load repo vars if available.
|
||||
ansible.builtin.include_vars:
|
||||
dir: "{{ template_dir.path }}/{{ template_dir.vars }}"
|
||||
dir: "{{ template.path }}/{{ template.vars }}"
|
||||
when: repo_vars.stat.isdir is defined
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user