From 7ba790bbaf5059fb5a858227b7b1e5f852a1a288 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 2 Mar 2016 11:54:41 -0500 Subject: [PATCH] don't tempalte register --- lib/ansible/playbook/task.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 56f3a15bf8..556aea5043 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -229,6 +229,13 @@ class Task(Base, Conditional, Taggable, Become): super(Task, self).post_validate(templar) + def _post_validate_register(self, attr, value, templar): + ''' + Override post validation for the register args field, which is not + supposed to be templated + ''' + return value + def _post_validate_loop_args(self, attr, value, templar): ''' Override post validation for the loop args field, which is templated