#!/bin/bash vagrant ssh-config > ssh-config echo -e " [VQFX] vqfx-re-01 ansible_host=`egrep -A 1 "Host vqfx-re-01" ssh-config | egrep HostName | cut -d' ' -f 4` vqfx-re-02 ansible_host=`egrep -A 1 "Host vqfx-re-02" ssh-config | egrep HostName | cut -d' ' -f 4` " > ini/hosts echo -e " [VQFX] vqfx-re-01 ansible_host=`egrep -A 1 "Host vqfx-re-01" ssh-config | egrep HostName | cut -d' ' -f 4` vqfx-re-02 ansible_host=`egrep -A 1 "Host vqfx-re-02" ssh-config | egrep HostName | cut -d' ' -f 4` "