#!/bin/bash
set -e

for HOST in $(fgrep 'all:' hosts | sed 's/.*all: *//g'); do
  echo "Playing on $HOST"
  ansible-playbook site.yml -l "$HOST" "$@"
  echo
done