homelab/ansible/makefile
2023-08-25 13:56:18 +02:00

14 lines
338 B
Makefile

requirements:
ansible-galaxy install -g -r roles/requirements.yml
deploy_production: generate-token
ansible-playbook site.yml -i production -u ansible
deploy_staging: generate-token
ansible-playbook site.yml -i staging -u ansible
generate-token:
export VAULT_TOKEN=`vault token create -policy=ansible -field="token" -period 6h`