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