From 529adb574a89a480db9dbc1f83a9e3ebafc576e3 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 21 Nov 2016 13:02:24 -0600 Subject: Cache dynamically included blocks for later lookup via uuid Fixes #18357 (cherry picked from commit 7e2305f95383bab8e36a4353a04f70fc35e26636) --- lib/ansible/plugins/strategy/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index 7ff1491d75..3157793491 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -783,6 +783,7 @@ class StrategyBase: # of hosts which included the file to the notified_handlers dict for block in new_blocks: iterator._play.handlers.append(block) + iterator.cache_block_tasks(block) for task in block.block: result = self._do_handler_run( handler=task, -- cgit v1.2.1