lab-ansible/tools/cmd.sh

7 lines
92 B
Bash
Raw Normal View History

#!/usr/bin/env bash
HOSTS="$1"
CMD="$2"
2023-12-23 17:05:10 +00:00
ansible -b -u ansible -m shell -a "$CMD" "$HOSTS"