feat: Reorganizes some of the roles and renames some variables
This commit is contained in:
15
roles/prepare-template-facts/tasks/main.yml
Normal file
15
roles/prepare-template-facts/tasks/main.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# This role is used internally to parse template variables, depending on
|
||||
# what is supplied.
|
||||
#
|
||||
- name: Set default template path.
|
||||
ansible.builtin.set_fact:
|
||||
repo_template_path: "{{ build_dir }}/template"
|
||||
|
||||
- name: Parse template path.
|
||||
ansible.builtin.set_fact:
|
||||
template_dir: "{{ template.path | default(repo_template_path) }}"
|
||||
|
||||
- name: Parse template vars path.
|
||||
ansible.builtin.set_fact:
|
||||
template_vars_path: "{{ template_dir }}/{{ template.vars | default('repo_vars') }}"
|
||||
Reference in New Issue
Block a user