def enable_ds(module, array):
    """Enable Directory Service"""
    changed = False
    try:
        array.enable_directory_service()
        changed = True
    except Exception:
        module.fail_json(msg=
            'Enable Directory Service failed: Check Configuration')
    module.exit_json(changed=changed)
