deploy (270B)
1 #!/bin/sh 2 set -eu 3 4 if [ -z "${1:-}" ] 5 then 6 echo "Usage: $0 <host/group> [ansible-playbook options...]" >&2 7 exit 1 8 fi 9 10 target=$1 11 shift 12 13 ansible-playbook -v \ 14 --inventory inventories/default \ 15 --limit "$target" \ 16 playbooks/setup.yml \ 17 "$@" 18 19 exit 0