def nova_conf(host, ansible_vars):
    """ Get OpenStack Nova conf file and return a list with each item in
        the list representing a line in the Nova conf file """

    nova_path = ansible_vars.get("nova_conf_path", None)
    if not nova_path:
        raise KeyError("Could not get nova_conf_path Ansible var")
    nova_conf = None
    with host.sudo():
        nova_conf = host.file(nova_path)
        if not (nova_conf.exists and nova_conf.is_file):
            raise FileNotFoundError("Failed to find Nova conf file at "
                                    "location '{path}'".format(path=nova_path))
    return nova_conf.content_string.split("\n")