1
0
Fork 0

some inventory adjustmets

This commit is contained in:
Von Random 2025-01-03 11:33:57 +02:00
parent e4bd07fe4a
commit 299b142adc
3 changed files with 5 additions and 2 deletions

4
mkinv
View file

@ -1,9 +1,11 @@
#!/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" >> "$FILENAME"
echo "vm$counter ansible_host=$i ansible_user=$A_USER ansible_ssh_private_key_file=$A_KEY" >> "$FILENAME"
((counter++))
done