histalek
39476da79e
This Makefile is quite simple for now. But in the future i plan to create multiple ansible role skeletons and this Makefile can simplify the usage of these quite a bit. I learned about self-documenting Makefiles from Sheo's Blog [1] and the referenced article from Victoria Drake [2]. [1] https://shivering-isles.com/til/2021/05/self-documenting-makefiles [2] https://victoria.dev/blog/how-to-create-a-self-documenting-makefile/
12 lines
353 B
Makefile
12 lines
353 B
Makefile
SHELL := /bin/bash
|
|
.POSIX:
|
|
.PHONY: help lint install
|
|
|
|
help: ## Show this help
|
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
lint: ## Lint ansible files with ansible-lint
|
|
ansible-lint
|
|
|
|
install: ## Install or update requirements
|
|
ansible-galaxy install -f -r requirements.yml
|