# Thin wrapper over scripts/, so that `make check` and CI run byte-identical
# commands. See CONTRIBUTING.md.
.PHONY: help check install lint syntax

help:
	@echo "make check    - the full static gate (what CI runs)"
	@echo "make install  - install the Galaxy collections"
	@echo "make lint     - yamllint + ansible-lint only"
	@echo "make syntax   - syntax-check every playbook only"

check:
	scripts/check.sh

install:
	cd ansible && ansible-galaxy install -r requirements.yml

lint:
	yamllint .
	cd ansible && ansible-lint .

syntax:
	cd ansible && for p in playbooks/*.yml; do ansible-playbook --syntax-check "$$p"; done
