update makefile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
vincent 2023-11-14 17:48:20 +01:00
parent 58f89756d3
commit ba4647379e
2 changed files with 11 additions and 5 deletions

View File

@ -2,21 +2,19 @@
requirements:
ansible-galaxy install -g -r roles/requirements.yml
deploy_production: generate-token
deploy_production:
ansible-playbook site.yml -i production -u ansible
deploy_staging: generate-token
deploy_staging:
ansible-playbook site.yml -i staging -u ansible
deploy_staging_base: generate-token
deploy_staging_base:
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$$"`

8
nomad-job/makefile Normal file
View File

@ -0,0 +1,8 @@
deploy-all:
for file in *.nomad; do \
nomad run -detach $$file; \
done
plan-all:
for file in *.nomad; do \
nomad plan $$file; \
done