Use exported resources to populate all_hosts array.