first commit

This commit is contained in:
2024-10-05 10:06:52 +02:00
commit 0784cad8af
57 changed files with 965 additions and 0 deletions

27
Makefile Normal file
View File

@@ -0,0 +1,27 @@
.PHONY: setup update-requirements .venv lint lint-fix setup-local clean
.venv: .venv/touchfile
.venv/touchfile: requirements.txt
test -d venv || virtualenv .venv
. .venv/bin/activate; pip install -Ur requirements.txt
touch .venv/touchfile
update-requirements:
. .venv/bin/activate; pip freeze > requirements.txt
install: .venv
lint: .venv
. .venv/bin/activate; \
ansible-lint playbooks/*.yml
lint-fix: .venv
. .venv/bin/activate; \
ansible-lint --fix playbooks/*.yml
setup-local: .venv
./scripts/setup-local.sh
clean:
rm -rf .venv