refactor: add poetry and make scripts for simpler usage

This commit is contained in:
2023-02-18 18:46:55 -08:00
parent 1fdfe560aa
commit 0f1ca446cd
5 changed files with 367 additions and 2 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
.POSIX:
env ?= "staging"
vault_id ?= "alpina@contrib/rbw-client.sh"
all: site
setup:
poetry install
default: site
site: setup
poetry run ansible-playbook --vault-id "${vault_id}" -i inventories/"${env}" site.yml
services: setup
poetry run ansible-playbook --vault-id ${vault_id} -i inventories/"${env}" services.yml