homelab/ansible/makefile

14 lines
338 B
Makefile
Raw Normal View History

requirements:
2022-11-01 19:41:27 +00:00
ansible-galaxy install -g -r roles/requirements.yml
2023-08-25 08:13:29 +00:00
deploy_production: generate-token
ansible-playbook site.yml -i production -u ansible
2023-08-25 08:13:29 +00:00
deploy_staging: generate-token
ansible-playbook site.yml -i staging -u ansible
2022-10-30 17:18:58 +00:00
2023-08-25 08:13:29 +00:00
generate-token:
export VAULT_TOKEN=`vault token create -policy=ansible -field="token" -period 6h`
2022-10-30 17:18:58 +00:00