From 48bf7a000d843a3d67999fdb36dc5844bff23834 Mon Sep 17 00:00:00 2001 From: smoothify Date: Wed, 16 Apr 2014 15:40:01 +0100 Subject: [PATCH] Try to pass in item to on_skippped callback. --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index f72d5399e7a..432ee854793 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -884,7 +884,7 @@ class Runner(object): # no callbacks return result if 'skipped' in data: - self.callbacks.on_skipped(host) + self.callbacks.on_skipped(host, inject.get('item',None)) elif not result.is_successful(): ignore_errors = self.module_vars.get('ignore_errors', False) self.callbacks.on_failed(host, data, ignore_errors)