5 lines
108 B
Bash
5 lines
108 B
Bash
|
for i in $(cat inventory.yaml | grep ssh | cut -d= -f2)
|
||
|
do
|
||
|
ssh-keyscan $i >> ~/.ssh/known_hosts
|
||
|
done
|