From 2e4191c01392245e3515c591f850208169cb7c57 Mon Sep 17 00:00:00 2001 From: Henry Finucane Date: Sun, 15 Feb 2015 20:16:41 -0800 Subject: [PATCH] Add `groups` back into inline templates --- lib/ansible/runner/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 63e4ed2741..79a167c5a0 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -678,6 +678,7 @@ class Runner(object): temp_vars = utils.merge_hash(temp_vars, self.play_vars) temp_vars = utils.merge_hash(temp_vars, self.play_file_vars) temp_vars = utils.merge_hash(temp_vars, self.extra_vars) + temp_vars = utils.merge_hash(temp_vars, {'groups': inject['groups']}) hostvars = HostVars(temp_vars, self.inventory, vault_password=self.vault_pass)