21 lines
561 B
Makefile
21 lines
561 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
|
|
|
|
|
|
deploy_staging_base: generate-token
|
|
ansible-playbook playbooks/sssd.yml -i staging -u ansible
|
|
ansible-playbook playbooks/wireguard.yml -i staging -u ansible
|
|
ansible-playbook playbooks/server.yml -i staging -u ansible
|
|
|
|
|
|
generate-token:
|
|
export VAULT_TOKEN=`vault token create -policy=ansible -field="token" -period 6h`
|
|
|