#!/bin/bash cmd="$*" echo "Running on hosts: $cmd" pssh -h /app/host_vars/hosts -t 0 "$cmd"