HELPTEXT="\ help: \n\ \tshows this helpful text.\n\ bootstrap: \n\ \tensures that repository-specific prerequisites are installed. \n\ test:\n\ \truns the playbook in a containerized environment for validation \n\ configure-env:\n\ \truns the playbook specified by PLAY on the host.\n\ " .PHONY: help help: @echo $(HELPTEXT) .PHONY: bootstrap bootstrap: pipx run pre-commit install .PHONY: test test: podman build . -t env-ansible-test podman run env-ansible-test .PHONY: configure-env configure-env: pipx install "ansible-core" ansible-playbook -v --ask-become-pass $(PLAY)