summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook/role/definition.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/playbook/role/definition.py')
-rw-r--r--lib/ansible/playbook/role/definition.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/ansible/playbook/role/definition.py b/lib/ansible/playbook/role/definition.py
index dddda27d80..658749c271 100644
--- a/lib/ansible/playbook/role/definition.py
+++ b/lib/ansible/playbook/role/definition.py
@@ -204,12 +204,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
# other mechanism where we exclude certain kinds of field attributes,
# or make this list more automatic in some way so we don't have to
# remember to update it manually.
- if key not in base_attribute_names or key in ('connection', 'port', 'remote_user'):
- if key in ('connection', 'port', 'remote_user'):
- display.deprecated("Using '%s' as a role param has been deprecated. " % key +
- "In the future, these values should be entered in the `vars:` " +
- "section for roles, but for now we'll store it as both a param and an attribute.", version="2.7")
- role_def[key] = value
+ if key not in base_attribute_names:
# this key does not match a field attribute, so it must be a role param
role_params[key] = value
else: