Generic libcloud script for ansible inventory