learn-ansible/justfile
2025-03-11 22:05:17 +01:00

24 lines
506 B
Makefile

# use with https://github.com/casey/just
default: check
default_playbook := "playbooks/default.yaml"
default_inventory := "./hosts.yaml"
deps:
pip-compile-multi \
--header requirements/_header_text
check playbook=default_playbook inventory=default_inventory:
ansible-playbook {{playbook}} --inventory={{inventory}} --check
deploy:
# call ansible-playbook WITHOUT "--check"
lint: lint_vagrant lint_ansible
lint_vagrant:
vagrant validate
lint_ansible:
ansible-lint --profile=production