feat: Update variable definitions

This commit is contained in:
2024-11-24 20:09:19 -05:00
parent 4d011d2f75
commit 88cd7c9033
4 changed files with 30 additions and 36 deletions

View File

@@ -32,15 +32,15 @@ home:
lair: "1:1"
# NOTE: These generally do not need changed, unless debugging.
config:
build_dir_name: ".build"
work_dir: "{{ lookup('env', 'PWD') }}"
build_dir: "{{ config.work_dir }}/{{ config.build_dir_name }}"
build_dir_name: ".build"
work_dir: "{{ lookup('env', 'PWD') }}"
build_dir: "{{ work_dir }}/{{ build_dir_name }}"
config:
# NOTE: These generally do not need changed, unless debugging or customizing files.
# Such as you want to add new definitions or customize the footer.
paths:
report_path: "{{ config.work_dir }}/Report.md"
report_path: "{{ work_dir }}/Report.md"
footer_path: "templates/footer.tex"
head_path: "files/head.tex"
definitions_path: "files/Definitions.md"

View File

@@ -1,31 +0,0 @@
---
author_name: "Testy McTestface Jr"
document_title: "Home Performance Report"
company:
website: "https://example.com"
phone: "555-555-5555"
url_display_title: "www.Example.com"
links:
images:
logo: "img/logo.png"
trueflow: "img/trueflow.png"
trueflow_forecast: "img/forecast.png"
documents:
loads_folder: "https://example.com/path/to/loads/folder"
trueflow_file: "https://example.com/path/to/trueflow/file"
trueflow_forecast_file: "https://example.com/path/to/trueflow/forecast/file"
document_folder: "https://example.com/path/to/document/folder"
customer:
name: "Testy McTestface Sr"
address:
street: "1234 Seasme Street"
city: "No Mans Land"
state: "Foo"
zip: "55555"
home:
square_feet: "3,000"
cfm50: "3,000"
lair: "1:1"

View File

@@ -16,3 +16,17 @@ home:
square_feet: "3,000"
cfm50: "3,000"
lair: "1:1"
# NOTE: These generally do not need changed, unless debugging.
build_dir_name: ".build"
work_dir: "{{ lookup('env', 'PWD') }}"
build_dir: "{{ work_dir }}/{{ build_dir_name }}"
config:
# NOTE: These generally do not need changed, unless debugging or customizing files.
# Such as you want to add new definitions or customize the footer.
paths:
report_path: "{{ work_dir }}/Report.md"
footer_path: "templates/footer.tex"
head_path: "files/head.tex"
definitions_path: "files/Definitions.md"

View File

@@ -60,6 +60,17 @@
- setup
- setup-all
- name: "Copy vars if not exists."
ansible.builtin.include_tasks:
file: "copy_if_not_exists.yml"
vars:
source: "files/vars.vault.yml"
destination: "{{ work_dir }}/vars.yml"
tags:
- setup-vault
- setup-with-vault
- setup-all-with-vault
- name: "Copy vault if not exists."
ansible.builtin.include_tasks:
file: "copy_if_not_exists.yml"