reboot.sh (232B)
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 \ 11 --inventory inventories/default \ 12 --limit "$1" \ 13 playbooks/reboot.yml 14 15 exit 0