30 lines
618 B
Makefile
30 lines
618 B
Makefile
.PHONY: clean-certs
|
|
clean-certs:
|
|
find certs/ -type f ! -name '.gitignore' -delete
|
|
|
|
.PHONY: tofu-init
|
|
tofu-init:
|
|
make -C opentofu/ init
|
|
|
|
.PHONY: tofu-apply
|
|
tofu-apply: clean-certs
|
|
make -C opentofu/ apply
|
|
|
|
.PHONY: tofu-destroy
|
|
tofu-destroy:
|
|
make -C opentofu/ destroy
|
|
|
|
.PHONY: init
|
|
init: tofu-destroy tofu-apply
|
|
|
|
.PHONY: regenerate-certs
|
|
regenerate-certs: clean-certs
|
|
ansible-playbook -i inventories/staging/ deploy.yaml --tags common --vault-password-file .pass
|
|
|
|
.PHONY: deploy
|
|
deploy:
|
|
ansible-playbook --vault-pass-file=.pass deploy.yaml
|
|
|
|
.PHONY: reset
|
|
reset:
|
|
ansible-playbook --vault-pass-file=.pass reset.yaml
|