##### 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

if isinstance(params, Container) and not isinstance(params, (text_type, binary_type)):
        if isinstance(params, Mapping):
            try:
                
                new_params = frozenset(params.items())
            except TypeError:
                new_params = set()
                for k, v in params.items():
                    
                    new_params.add((k, hash_params(v)))
                new_params = frozenset(new_params)
        elif isinstance(params, (Set, Sequence)):
            try:
                
                new_params = frozenset(params)
            except TypeError:
                new_params = set()
                for v in params:
                    
                    new_params.add(hash_params(v))
                new_params = frozenset(new_params)
        else:
            
            new_params = frozenset(params)
        return new_params
    
    
    return frozenset((params,))
class Role(Base, Conditional, Taggable, CollectionSearch):