lab-ansible/cmd.sh
2023-12-23 18:05:10 +01:00

7 lines
92 B
Bash
Executable file

#!/usr/bin/env bash
HOSTS="$1"
CMD="$2"
ansible -b -u ansible -m shell -a "$CMD" "$HOSTS"