infra-ansible
ansible script to ship alpine/ssh/wireguard
git clone https://9o.is/git/infra-ansible.git
commit c97dd038001d6de51dfeb1685f2d0f17e49451a3 parent 894f021e58cf2fcf6616d1caf377e322de4d284d Author: Jul <jul@9o.is> Date: Sat, 11 May 2024 01:04:59 +0800 set vault password script in config file Diffstat:
| A | host/ansible.cfg | | | 2 | ++ |
| A | host/contrib/vault-password.sh | | | 3 | +++ |
| D | host/contrib/vault/vault-infra.sh | | | 14 | -------------- |
3 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/host/ansible.cfg b/host/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +vault_password_file=contrib/vault-password.sh diff --git a/host/contrib/vault-password.sh b/host/contrib/vault-password.sh @@ -0,0 +1,3 @@ +#!/bin/bash +qrexec-client-vm vault vault.RequestPassword+ansible-vault-infra + diff --git a/host/contrib/vault/vault-infra.sh b/host/contrib/vault/vault-infra.sh @@ -1,14 +0,0 @@ -#!/bin/bash - -#if [ "$1" != "--vault-id" ]; then -# echo "Flag --vault-id is required" -# exit 1 -#fi - -#if [ ! "$2" ]; then -# echo "Missing vault id value" -# exit 1 -#fi - -qrexec-client-vm vault vault.RequestPassword+ansible-vault-infra -