feat: Begins hpa script

This commit is contained in:
2024-11-28 18:57:55 -05:00
parent ee134d3ce8
commit a20ce14bce
6 changed files with 323 additions and 2 deletions

View File

@@ -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