feat: Moves ansible stuff into .ansible, adds setup to Makefile to link relevant files
This commit is contained in:
15
Makefile
15
Makefile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user