From 5b6162a1664b8661b6979996ed9dad76bf88d6da Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 28 Nov 2015 09:08:10 -0500 Subject: [PATCH] Re-adding role_name/role_uuid variables --- lib/ansible/vars/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py index 5819f0547f5..63c7a237aa0 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -383,7 +383,9 @@ class VariableManager: if task: if task._role: + variables['role_name'] = task._role.get_name() variables['role_path'] = task._role._role_path + variables['role_uuid'] = task._role._uuid if self._inventory is not None: variables['inventory_dir'] = self._inventory.basedir()