def socket_mem_from_vars(ansible_vars):
    """ Return list of DPDK socket memory values defined in Ansible variables
    """

    numa_nodes = ansible_vars["numa_nodes"]
    socket_mem = []
    for node in sorted(numa_nodes.keys()):
        socket_mem.append(numa_nodes[node]["dpdk_socket_mem"])
    return socket_mem