2022-06-19 10:38:23 +00:00
|
|
|
|
|
|
|
requirements:
|
2022-11-01 19:41:27 +00:00
|
|
|
ansible-galaxy install -g -r roles/requirements.yml
|
2022-06-19 10:38:23 +00:00
|
|
|
|
2023-08-25 08:13:29 +00:00
|
|
|
deploy_production: generate-token
|
2022-11-06 18:14:27 +00:00
|
|
|
ansible-playbook site.yml -i production -u ansible
|
2022-06-19 10:38:23 +00:00
|
|
|
|
2023-08-25 08:13:29 +00:00
|
|
|
deploy_staging: generate-token
|
|
|
|
ansible-playbook site.yml -i staging -u ansible
|
2022-10-30 17:18:58 +00:00
|
|
|
|
2023-10-29 14:35:30 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2023-08-25 08:13:29 +00:00
|
|
|
generate-token:
|
|
|
|
export VAULT_TOKEN=`vault token create -policy=ansible -field="token" -period 6h`
|
2022-10-30 17:18:58 +00:00
|
|
|
|
2023-10-29 19:23:41 +00:00
|
|
|
view-allvault:
|
|
|
|
ansible-vault view `git grep -l "ANSIBLE_VAULT;1.1;AES256$$"`
|
|
|
|
|