From 9b9fb51d9db9472c8f3dee34e23ab0277420bfcf Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 17 Nov 2015 15:37:18 -0500 Subject: [PATCH] Template the final_environment value in _compute_environment_string() Fixes #13123 --- lib/ansible/plugins/action/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index cde1c8c9ce..124321e67b 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -160,6 +160,7 @@ class ActionBase(with_metaclass(ABCMeta, object)): # these environment settings should not need to merge sub-dicts final_environment.update(environment) + final_environment = self._templar.template(final_environment) return self._connection._shell.env_prefix(**final_environment) def _early_needs_tmp_path(self):