def METHOD_NAME(self):
    """Run the ansible tasks specified in the tasks module."""
    try:
        if sys.platform == 'win32':
            # If Windows, run the qa-ctl tasks in a linux container due to ansible is not compatible with Windows
            tmp_config_file_name = f"config_{get_current_timestamp()}.yaml"
            tmp_path = os.path.join(gettempdir(), 'wazuh_qa_ctl')
            tmp_config_file = os.path.join(tmp_path, tmp_config_file_name)
            # Copy the tasks data to modify
            container_tasks = deepcopy(self.tasks_data)
            # Copy the local playbooks to the wazuh qa-ctl path, that is shared with the container through a volume
            for _, task_data in container_tasks.items():
                if 'playbooks' in task_data:
                    for playbook_data in task_data['playbooks']:
                        if 'local_path' in playbook_data:
                            file.copy(playbook_data['local_path'], tmp_path)
                            playbook_file = os.path.split(playbook_data['local_path'])[1]
                            # Update local path to specify the playbooks path in the container
                            playbook_data['local_path'] = f"/wazuh_qa_ctl/{playbook_file}"
            # Write a custom configuration file with tasks section modified (local paths)
            file.write_yaml_file(tmp_config_file, {'tasks': container_tasks})
            try:
                qa_ctl_docker_run(tmp_config_file_name, self.qa_ctl_configuration.qa_ctl_launcher_branch,
                                  self.qa_ctl_configuration.debug_level, topic='launching the custom tasks')
            finally:
                file.remove_file(tmp_config_file)
        else:
            for task_runner in self.ansible_runners:
                QATasksLauncher.LOGGER.info(f"Running {task_runner.task_id}")
                task_runner.METHOD_NAME()
                QATasksLauncher.LOGGER.info(f"The {task_runner.task_id} has been finished successfully")
    finally:
        self.destroy()