lab-ansible/tools/reboot.sh

11 lines
137 B
Bash
Executable File

#!/usr/bin/env bash
if [[ $1 == "-i" ]]; then
ARGS="-i $2"
shift 2
fi
HOSTS="$1"
eval "ansible $ARGS -b -m reboot \"$HOSTS\""