learn-ansible/justfile

25 lines
506 B
Makefile
Raw Normal View History

2025-03-11 22:05:17 +01:00
# use with https://github.com/casey/just
2025-03-03 19:54:56 +01:00
default: check
default_playbook := "playbooks/default.yaml"
default_inventory := "./hosts.yaml"
deps:
pip-compile-multi \
--header requirements/_header_text
2025-03-03 19:54:56 +01:00
check playbook=default_playbook inventory=default_inventory:
2025-03-03 19:54:56 +01:00
ansible-playbook {{playbook}} --inventory={{inventory}} --check
2025-03-11 22:05:17 +01:00
deploy:
# call ansible-playbook WITHOUT "--check"
lint: lint_vagrant lint_ansible
lint_vagrant:
vagrant validate
2025-03-11 22:05:17 +01:00
lint_ansible:
ansible-lint --profile=production