24 lines
640 B
Makefile
24 lines
640 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`
|
|
|
|
view-allvault:
|
|
ansible-vault view `git grep -l "ANSIBLE_VAULT;1.1;AES256$$"`
|
|
|