11 lines
274 B
Bash
Executable file
11 lines
274 B
Bash
Executable file
#!/usr/bin/env bash
|
|
FILENAME="./inventory.ini"
|
|
A_USER="andrei"
|
|
A_KEY="$HOME/.ssh/id_ed25519_yatf"
|
|
|
|
counter=0
|
|
echo -n > "$FILENAME"
|
|
for i; do
|
|
echo "vm$counter ansible_host=$i ansible_user=$A_USER ansible_ssh_private_key_file=$A_KEY" >> "$FILENAME"
|
|
((counter++))
|
|
done
|