ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | README | LICENSE

extract-borg-key (409B)


      1 #!/bin/bash
      2 
      3 set -eu
      4 
      5 case "${1:-}" in
      6     -*)
      7         echo "Usage: $0 [host/group [ansible-playbook options...]]" >&2
      8         exit 1
      9         ;;
     10 esac
     11 
     12 target=${1:-spec}
     13 if [ "$#" -gt 0 ]; then
     14     shift
     15 fi
     16 
     17 ansible-playbook \
     18     --inventory inventories/default \
     19     --limit "$target" \
     20     --user root \
     21     playbooks/borg-ssh-export.yml \
     22     "$@"
     23 cat borg.pub/*/root/.ssh/borg.pub
     24 rm -rf borg.pub/
     25 exit 0