Move tasks to get hostname by service_id
Back to use hostname as a identifier of hosts