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

```
lib/ansible/playbook/task.py:267:20: 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/task.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

'''Insert a role validation task if we have a role argument spec.
        This method will prepend a validation task to the front of the role task
        list to perform argument spec validation before any other tasks, if an arg spec
        exists for the entry point. Entry point defaults to `main`.
        :param task_data: List of tasks loaded from the role.
        :returns: The (possibly modified) task list.
        '''
        if self._metadata.argument_specs:
            
            
            entrypoint = self._from_files.get('tasks', 'main')
            entrypoint_arg_spec = self._metadata.argument_specs.get(entrypoint)
            if entrypoint_arg_spec:
                validation_task = self._create_validation_task(entrypoint_arg_spec, entrypoint)
                
                
                
                if not task_data:
                    task_data = []
                task_data.insert(0, validation_task)
        return task_data
    def _create_validation_task(self, argument_spec, entrypoint_name):