[just] lint targets

This commit is contained in:
bronsen 2025-03-11 22:05:17 +01:00
parent 04ef41365c
commit 2200dba8a5

View file

@ -1,3 +1,6 @@
# use with https://github.com/casey/just
default: check
default_playbook := "playbooks/default.yaml"
default_inventory := "./hosts.yaml"
@ -9,5 +12,13 @@ deps:
check playbook=default_playbook inventory=default_inventory:
ansible-playbook {{playbook}} --inventory={{inventory}} --check
lint:
deploy:
# call ansible-playbook WITHOUT "--check"
lint: lint_vagrant lint_ansible
lint_vagrant:
vagrant validate
lint_ansible:
ansible-lint --profile=production