Dot_Files/Makefile

22 lines
712 B
Makefile

.DEFAULT_GOAL := help
help:
$(info The following targets are available:)
$(info ------------------------------------)
$(info deps - install ansible galaxy dependencies)
$(info deploy-initial - do a first time deployment, run this if you don't know what else to run)
$(info deploy - do a generic deployment, note you should run `deploy-initial` if no deployments have been done thus far)
$(info check - run ansible in check mode)
deps:
ansible-galaxy install -r requirements.yml
deploy-initial: deps
ansible-playbook playbook.yml --extra-vars '{"initial_setup": true}' -K
deploy: deps
ansible-playbook playbook.yml -K
check: deps
ansible-playbook playbook.yml --check -K