##### SUMMARY
conditional contains call to Display.deprecated or AnsibleModule.deprecate and is scheduled for removal

```
lib/ansible/playbook/conditional.py:144:16: ansible-deprecated-version: Deprecated version ('2.12') found in call to Display.deprecated or AnsibleModule.deprecate (0%)
```

##### ISSUE TYPE
 - Bug Report

##### COMPONENT NAME
```
lib/ansible/playbook/conditional.py
```

##### ANSIBLE VERSION
```
2.12
```

##### CONFIGURATION
N/A

##### OS / ENVIRONMENT
N/A

##### STEPS TO REPRODUCE
N/A

##### EXPECTED RESULTS
N/A

##### ACTUAL RESULTS
N/A

templar.available_variables = all_vars
        try:
            
            disable_lookups = hasattr(conditional, '__UNSAFE__')
            conditional = templar.template(conditional, disable_lookups=disable_lookups)
            if bare_vars_warning and not isinstance(conditional, bool):
                display.deprecated('evaluating %r as a bare variable, this behaviour will go away and you might need to add " | bool"'
                                   ' (if you would like to evaluate input string from prompt) or " is truthy"'
                                   ' (if you would like to apply Python\'s evaluation method) to the expression in the future. '
                                   'Also see CONDITIONAL_BARE_VARS configuration toggle' % original,
                                   version="2.12", collection_name='ansible.builtin')
            if not isinstance(conditional, text_type) or conditional == "":
                return conditional
            
            
            disable_lookups |= hasattr(conditional, '__UNSAFE__')
            
            
            class CleansingNodeVisitor(ast.NodeVisitor):
                def generic_visit(self, node, inside_call=False, inside_yield=False):
                    if isinstance(node, ast.Call):
                        inside_call = True
                    elif isinstance(node, ast.Yield):
                        inside_yield = True
                    elif isinstance(node, ast.Str):
                        if disable_lookups:
                            if inside_call and node.s.startswith("__"):
                                
                                raise AnsibleError(
                                    "Invalid access found in the conditional: '%s'" % conditional