feat: Moves ansible stuff into .ansible, adds setup to Makefile to link relevant files

This commit is contained in:
2024-11-23 21:25:39 -05:00
parent c06697f3b1
commit 048b032b7f
21 changed files with 481 additions and 46 deletions

View File

@@ -3,6 +3,7 @@ TEX_TITLE ?= "Report.tex"
HTML_TITLE ?= "report.html"
BUILD_DIR ?= "${PWD}/build"
PDF_TEST_TITLE ?= "Report.test.pdf"
ANSIBLE_DIR = ".ansible"
.PHONY: pdf
pdf: ansible
@@ -29,21 +30,23 @@ install:
.PHONY: ansible
ansible:
@cd ./ansible && \
@cd "${ANSIBLE_DIR}" && \
ansible-playbook playbook.yaml \
--extra-vars "build_dir=${BUILD_DIR}"
.PHONY: ansible-vault-example
ansible-vault-example:
@cd ./ansible && \
@cd "${ANSIBLE_DIR}" && \
ansible-playbook playbook.yaml \
--extra-vars "build_dir=${BUILD_DIR}"
--ask-vault-password \
--extra-vars "build_dir=${BUILD_DIR}" \
--extra-vars "@group_vars/vault_example/vars.yaml" \
--extra-vars "@group_vars/vault_example/vault.yaml" \
.PHONY: link
link:
@ln -sfv ./ansible/roles/report/templates/Report.md
.PHONY: setup
setup:
@ln -sfv "${ANSIBLE_DIR}/roles/report/templates/Report.md"
@ln -sfv "${ANSIBLE_DIR}/group_vars/all" ./vars
.PHONY: clean
clean: