backup.sh (233B)
1 #!/bin/sh 2 3 set -eu 4 5 if [ -z ${1:-} ] 6 then 7 echo "Call with 'spec' or another host/group to select target" 8 exit 1 9 fi 10 11 ansible-playbook \ 12 --inventory inventories/default \ 13 --limit "$1" \ 14 playbooks/backup.yml 15 16 exit 0