for host, value in runner_results.get('contacted', {}).items():
    if 'invocation' in value:
        if value['invocation']['module_name'] == 'service':
            self.results['service_name'] = value['name']

def summarize(self, host):
    """                                                                         
    Return information about a particular host                                  
    """
summarized_info = super(CustomAggregateStats, self).summarize(host)
summarized_info['result'] = self.results
return summarized_info
Как с помощью Ansible Python API получить доступ к выходным данным уровня задачи в моем коде?