1
0
Fork 0
yatf/mkinv

9 lines
166 B
Bash
Executable file

#!/usr/bin/env bash
FILENAME="./inventory.ini"
counter=0
echo -n > "$FILENAME"
for i; do
echo "vm$counter ansible_host=$i" >> "$FILENAME"
((counter++))
done