From b7ccc8cfa1e25685bfacf3920fbd6771f10b32d3 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 13 Feb 2016 01:02:47 -0500 Subject: Fix bugs related to task_includes and dep chain inheritance * Fix the way task_include fields were created and copied * Have blocks get_dep_chain() look at task_include's blocks for proper dep chain inheritance * Fix the way task_include fields are copied to prevent a recursive degradation Fixes #14460 --- lib/ansible/playbook/block.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/playbook/block.py b/lib/ansible/playbook/block.py index d5cd703050..1c9569de8d 100644 --- a/lib/ansible/playbook/block.py +++ b/lib/ansible/playbook/block.py @@ -153,6 +153,8 @@ class Block(Base, Become, Conditional, Taggable): if self._dep_chain is None: if self._parent_block: return self._parent_block.get_dep_chain() + elif self._task_include: + return self._task_include._block.get_dep_chain() else: return None else: -- cgit v1.2.1