1
0
Fork 0
yatf/mkinv

10 lines
166 B
Text
Raw Normal View History

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