homelab/ansible/makefile
vincent 594ffcad44
Some checks failed
continuous-integration/drone/push Build is failing
add alias to see all vault alias
2023-10-29 20:23:41 +01:00

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$$"`