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