1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Apply templating to module arguments in playbook

Module arguments should have variable substitution applied
Also, replacing task.action with the templated task.name seems wrong
This commit is contained in:
Will Thames 2012-08-02 16:11:40 +10:00 committed by Michael DeHaan
parent e820c282be
commit 4fedb17e38

View file

@ -83,7 +83,8 @@ class Task(object):
import_tags = import_tags.split(",")
self.name = utils.template(self.name, self.module_vars)
self.action = utils.template(self.name, self.module_vars)
self.action = utils.template(self.action, self.module_vars)
self.module_args = utils.template(self.module_args, self.module_vars)
# handle mutually incompatible options
if self.with_items is not None and self.first_available_file is not None: