Automatically detect the IP address based on the iface name.

Needs to be outside of the elasticsearch hash, because due to an ansible
limitation a has cannot reference values from itself.