This commit is contained in:
parent
58f89756d3
commit
ba4647379e
@ -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
8
nomad-job/makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user