homelab/ansible/makefile

17 lines
350 B
Makefile
Raw Normal View History

requirements:
2022-11-01 19:41:27 +00:00
ansible-galaxy install -g -r roles/requirements.yml
deploy_production:
ansible-playbook site.yml -i production -u ansible
generate-token:
@echo export VAULT_TOKEN=`vault token create -policy=ansible -field="token" -period 6h`
2022-10-30 17:18:58 +00:00
2022-11-01 19:41:27 +00:00
create-dev: requirements
PY_COLORS=1 molecule converge
2022-10-30 17:18:58 +00:00
destroy-dev:
2022-11-01 19:41:27 +00:00
PY_COLORS=1 molecule destroy