orchestration.clouds/ahoskingit/terraform/get_current_ip.sh

4 lines
78 B
Bash
Raw Normal View History

#!/bin/bash
IP=`curl ifconfig.co`
echo 'home_ip = "'$IP'"' > var_homeip.tfvar