ansible-taler-exchange

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

sanction-check.sh (427B)


      1 #!/bin/bash
      2 
      3 set -eu
      4 
      5 if [ -z ${1:-} ]; then
      6   echo "Call with 'spec' or other host/group as target"
      7   exit 1
      8 fi
      9 
     10 if [ -z ${2:-} ]; then
     11   echo "Pass sanction list as 2nd argument"
     12   exit 1
     13 fi
     14 
     15 if [ ! -f ${2:-} ]; then
     16   echo "Sanction list '$2' not found"
     17   exit 1
     18 fi
     19 
     20 ansible-playbook \
     21   --extra-vars "SANCTION_LIST=$2" \
     22   --verbose \
     23   --limit "$1" \
     24   --inventory inventories/default \
     25   playbooks/sanctionlist-check.yml