2023-09-06 19:04:13 -05:00
|
|
|
.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)
|
|
|
|
|
2023-09-06 18:29:53 -05:00
|
|
|
deps:
|
|
|
|
ansible-galaxy install -r requirements.yml
|
|
|
|
|
2023-09-06 19:04:13 -05:00
|
|
|
deploy-initial: deps
|
2023-09-06 19:07:18 -05:00
|
|
|
ansible-playbook playbook.yml --extra-vars '{"initial_setup": true}' -K
|
2023-09-06 18:09:07 -05:00
|
|
|
|
2023-09-06 19:04:13 -05:00
|
|
|
deploy: deps
|
2023-09-06 19:07:18 -05:00
|
|
|
ansible-playbook playbook.yml -K
|
2023-09-06 18:09:07 -05:00
|
|
|
|
2023-09-06 19:04:13 -05:00
|
|
|
check: deps
|
2023-09-06 19:07:18 -05:00
|
|
|
ansible-playbook playbook.yml --check -K
|