mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
add option to ignore $legacy variable style substitution
This commit is contained in:
parent
67e67bca1f
commit
542eeeb5d6
3 changed files with 13 additions and 0 deletions
|
@ -142,6 +142,11 @@ def _legacy_varFind(basedir, text, vars, lookup_fatal, depth, expand_lists):
|
|||
original data in the caller.
|
||||
'''
|
||||
|
||||
# short circuit this whole function if we have specified we don't want
|
||||
# legacy var replacement
|
||||
if C.DEFAULT_LEGACY_PLAYBOOK_VARIABLES == 'no':
|
||||
return None
|
||||
|
||||
start = text.find("$")
|
||||
if start == -1:
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue