for HOST in "$@"; do
echo "Playing on $HOST"
ansible-playbook upgrade.yml -l "$HOST"
- read -p "Do you want me to reboot? (y/N) " ANSWER
+ read -p "Do you want me to reboot $HOST? (y/N) " ANSWER
if [[ "$ANSWER" == y* ]]; then
ansible "$HOST" -a "shutdown -r +1"
fi