def create_role(module, array):
    """Create Directory Service Role"""
    changed = False
    try:
        array.set_directory_services_roles(names=[module.params['role']],
            group_base=module.params['group_base'], group=module.params[
            'group'])
        changed = True
    except Exception:
        module.fail_json(msg=
            'Create Directory Service Role {0} failed: Check configuration'
            .format(module.params['role']))
    module.exit_json(changed=changed)
