feat: Begins hpa script
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
ansible.builtin.stat:
|
||||
path: "{{ template_dir }}"
|
||||
register: template_dir_stat
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Ensure repo.
|
||||
ansible.builtin.git:
|
||||
@@ -15,13 +17,19 @@
|
||||
dest: "{{ template_dir }}"
|
||||
version: "{{ template.repo.version | default('main') }}"
|
||||
when: template.repo.url is defined and not template_dir_stat.stat.exists
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Check for repo vars directory.
|
||||
ansible.builtin.stat:
|
||||
path: "{{ template_vars_path }}"
|
||||
register: repo_vars
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: Load repo vars if available.
|
||||
ansible.builtin.include_vars:
|
||||
dir: "{{ template_vars_path }}"
|
||||
when: repo_vars.stat.isdir is defined
|
||||
tags:
|
||||
- always
|
||||
|
||||
Reference in New Issue
Block a user