def _generate_ansible_cfg_attributes(self, global_vars_dict):
        ansible_cfg_tmpl_path = os.path.join(
            os.path.join(self.tmpl_dir, 'ansible_cfg'), self.tmpl_name
        )
        if not os.path.exists(ansible_cfg_tmpl_path):
            logging.error("cfg template '%s' does not exist", self.tmpl_name)
            raise Exception("Template '%s' does not exist!" % self.tmpl_name)

        return self.get_config_from_template(
            ansible_cfg_tmpl_path,
            global_vars_dict
        )
dataset/ETHPy150Open openstack/compass-core/compass/deployment/installers/pk_installers/ansible_installer/ansible_installer.py/AnsibleInstaller._generate_ansible_cfg_attributes/original