add get hosts role by name function