infrastructure/Makefile

17 lines
562 B
Makefile
Raw Permalink Normal View History

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
2022-08-13 19:33:18 +02:00
ANSIBLE_CONFIG=ansible.lint.cfg ansible-lint --offline roles/ playbooks/
install: ## Install or update requirements
ansible-galaxy install -f -r requirements.yml
2021-11-07 16:06:38 +01:00
role: ## Create a new role based on the default skeleton
@read -p "Enter role name: " name; \
ansible-galaxy role init --init-path ./roles $$name