mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Template using module_vars early
Since no basedir is available at that time, avoid invoking lookup plugins since they assume it is present.
This commit is contained in:
parent
f54af8f0f6
commit
233a36b9e8
2 changed files with 5 additions and 1 deletions
|
@ -149,6 +149,9 @@ class Task(object):
|
|||
# allow the user to list comma delimited tags
|
||||
import_tags = import_tags.split(",")
|
||||
|
||||
self.name = utils.template(None, self.name, self.module_vars)
|
||||
self.action = utils.template(None, self.action, self.module_vars)
|
||||
|
||||
# handle mutually incompatible options
|
||||
incompatibles = [ x for x in [ self.first_available_file, self.items_lookup_plugin ] if x is not None ]
|
||||
if len(incompatibles) > 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue