deploy.sh (341B)
1 #!/bin/sh 2 set -eu 3 4 if [ -z "${1:-}" ] 5 then 6 echo "Call with 'spec' or another host/group to select target" 7 exit 1 8 fi 9 10 ansible-playbook -v \ 11 --inventory inventories/default \ 12 --limit "$1" \ 13 playbooks/setup.yml 14 15 if [ -f root/postgres-backup.sql.gz ] 16 then 17 echo "Remember to delete root/postgres-backup.sql.gz" 18 fi 19 20 exit 0