diff --git a/lib/ansible/playbook/role/__init__.py b/lib/ansible/playbook/role/__init__.py index d53a0a135b..d708d10378 100644 --- a/lib/ansible/playbook/role/__init__.py +++ b/lib/ansible/playbook/role/__init__.py @@ -65,6 +65,8 @@ def hash_params(params): class Role(Base, Become, Conditional, Taggable): + _delegate_to = FieldAttribute(isa='string') + def __init__(self, play=None): self._role_name = None self._role_path = None diff --git a/lib/ansible/playbook/role/include.py b/lib/ansible/playbook/role/include.py index 07ebf3f0d6..0133c8dd2e 100644 --- a/lib/ansible/playbook/role/include.py +++ b/lib/ansible/playbook/role/include.py @@ -38,6 +38,8 @@ class RoleInclude(RoleDefinition): FIXME: docstring """ + _delegate_to = FieldAttribute(isa='string') + def __init__(self, play=None, role_basedir=None, variable_manager=None, loader=None): super(RoleInclude, self).__init__(play=play, role_basedir=role_basedir, variable_manager=variable_manager, loader=loader)