mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
@@ -109,7 +109,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
|
||||
return ds
|
||||
|
||||
role_name = ds.get('role', ds.get('name'))
|
||||
if not role_name:
|
||||
if not role_name or not isinstance(role_name, string_types):
|
||||
raise AnsibleError('role definitions must contain a role name', obj=ds)
|
||||
|
||||
return role_name
|
||||
|
||||
Reference in New Issue
Block a user