11 lines
137 B
Bash
Executable file
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\""
|